Struct ftd::p1::Section [−][src]
pub struct Section {
pub name: String,
pub caption: Option<String>,
pub header: Header,
pub body: Option<(usize, String)>,
pub sub_sections: SubSections,
pub is_commented: bool,
pub line_number: usize,
}
Fields
name: String
header: Header
body: Option<(usize, String)>
sub_sections: SubSections
is_commented: bool
line_number: usize
Implementations
pub fn add_header_if_not_equal<T>(
self,
key: &str,
value: T,
reference: T
) -> Self where
T: ToString + PartialEq,
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Section
impl UnwindSafe for Section
Blanket Implementations
Mutably borrows from an owned value. Read more