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: String
header: Header
body: Option<String>
sub_sections: SubSections
Implementations
impl Section
[src]
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]
self,
key: &str,
value: T,
reference: T
) -> Self where
T: ToString + PartialEq,
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
Auto Trait Implementations
impl RefUnwindSafe for Section
impl RefUnwindSafe for Section
impl UnwindSafe for Section
impl UnwindSafe for Section