Skip to main content

PrintfileData

Struct PrintfileData 

Source
pub struct PrintfileData<'a> {
Show 15 fields pub label: &'a str, pub subject: &'a str, pub dir: &'a str, pub name: Option<&'a str>, pub email: Option<&'a str>, pub msgid: Option<&'a str>, pub charset: Option<&'a str>, pub date: Option<&'a str>, pub display_date: Option<&'a str>, pub filename: Option<&'a str>, pub archives: Option<&'a str>, pub about: Option<&'a str>, pub mailto: Option<&'a str>, pub language: &'a str, pub rel_path_to_top: &'a str,
}
Expand description

Data for original hypermail-style %x single-character template substitution, matching the printfile() function in the original hypermail printfile.c.

Fields§

§label: &'a str

Archive label (%l)

§subject: &'a str

Message subject text — HTML-escaped where needed (%s, %S)

§dir: &'a str

Output directory (%~)

§name: Option<&'a str>

Author display name (%A combined with email)

§email: Option<&'a str>

Author email address (%e, %A)

§msgid: Option<&'a str>

Message-ID (%i)

§charset: Option<&'a str>

Charset (%c)

§date: Option<&'a str>

ISO date string for meta tag (%D)

§display_date: Option<&'a str>

Human-readable date string for display (%d)

§filename: Option<&'a str>

HTML filename of the current page (%f)

§archives: Option<&'a str>

Other-archives URL (%a)

§about: Option<&'a str>

About-archive URL (%b)

§mailto: Option<&'a str>

Mailto address (%m)

§language: &'a str

Language code (%G)

§rel_path_to_top: &'a str

Relative path from current page back to the top-level index (%t)

Auto Trait Implementations§

§

impl<'a> Freeze for PrintfileData<'a>

§

impl<'a> RefUnwindSafe for PrintfileData<'a>

§

impl<'a> Send for PrintfileData<'a>

§

impl<'a> Sync for PrintfileData<'a>

§

impl<'a> Unpin for PrintfileData<'a>

§

impl<'a> UnsafeUnpin for PrintfileData<'a>

§

impl<'a> UnwindSafe for PrintfileData<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.