Struct ftd::p1::Section[][src]

pub struct Section {
    pub name: String,
    pub caption: Option<String>,
    pub header: Header,
    pub body: Option<String>,
    pub sub_sections: SubSections,
}

Fields

name: Stringcaption: Option<String>header: Headerbody: Option<String>sub_sections: SubSections

Implementations

impl Section[src]

pub fn with_name(name: &str) -> Self[src]

pub fn and_caption(self, caption: &str) -> Self[src]

pub fn and_optional_caption(self, value: &Option<Rendered>) -> Self[src]

pub fn add_header(self, key: &str, value: &str) -> Self[src]

pub fn add_optional_header_bool(self, key: &str, value: Option<bool>) -> Self[src]

pub fn add_optional_header_i32(self, key: &str, value: &Option<i32>) -> Self[src]

pub fn add_header_if_not_equal<T>(
    self,
    key: &str,
    value: T,
    reference: T
) -> Self where
    T: ToString + PartialEq
[src]

pub fn add_optional_header(self, key: &str, value: &Option<String>) -> Self[src]

pub fn and_body(self, body: &str) -> Self[src]

pub fn and_optional_body(self, body: &Option<String>) -> Self[src]

pub fn add_sub_section(self, sub: SubSection) -> Self[src]

Trait Implementations

impl Debug for Section[src]

impl Default for Section[src]

impl Display for Section[src]

impl PartialEq<Section> for Section[src]

impl StructuralPartialEq for Section[src]

Auto Trait Implementations

impl RefUnwindSafe for Section

impl Send for Section

impl Sync for Section

impl Unpin for Section

impl UnwindSafe for Section

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any