Struct ftd::p1::SubSection [−][src]
pub struct SubSection {
pub name: String,
pub caption: Option<String>,
pub header: Header,
pub body: Option<(usize, String)>,
pub is_commented: bool,
pub line_number: usize,
}
Fields
name: String
header: Header
body: Option<(usize, String)>
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
Returns the “default value” for a type. Read more
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SubSection
impl Send for SubSection
impl Sync for SubSection
impl Unpin for SubSection
impl UnwindSafe for SubSection
Blanket Implementations
Mutably borrows from an owned value. Read more