Struct ftd::p1::SubSection [−][src]
pub struct SubSection { pub name: String, pub caption: Option<String>, pub header: Header, pub body: Option<String>, }
Fields
name: String
header: Header
body: Option<String>
Implementations
impl SubSection
[src]
impl SubSection
[src]pub fn body(&self) -> Result<String>
[src]
pub fn with_name(name: &str) -> Self
[src]
pub fn and_caption(self, caption: &str) -> 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(self, key: &str, value: &Option<String>) -> 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 and_body(self, body: &str) -> Self
[src]
pub fn and_optional_body(self, body: &Option<String>) -> Self
[src]
Trait Implementations
impl Default for SubSection
[src]
impl Default for SubSection
[src]fn default() -> SubSection
[src]
impl PartialEq<SubSection> for SubSection
[src]
impl PartialEq<SubSection> for SubSection
[src]fn eq(&self, other: &SubSection) -> bool
[src]
fn ne(&self, other: &SubSection) -> bool
[src]
impl StructuralPartialEq for SubSection
[src]
impl StructuralPartialEq for SubSection
[src]Auto Trait Implementations
impl RefUnwindSafe for SubSection
impl RefUnwindSafe for SubSection
impl Send for SubSection
impl Send for SubSection
impl Sync for SubSection
impl Sync for SubSection
impl Unpin for SubSection
impl Unpin for SubSection
impl UnwindSafe for SubSection
impl UnwindSafe for SubSection