pub struct StandardTextModule {
pub headline: Option<Box<TextComponent>>,
pub body: Box<ParagraphComponent>,
}Expand description
StandardTextModule : A standard headline and body text.
Fields
headline: Option<Box<TextComponent>>body: Box<ParagraphComponent>Implementations
sourceimpl StandardTextModule
impl StandardTextModule
sourcepub fn new(body: ParagraphComponent) -> StandardTextModule
pub fn new(body: ParagraphComponent) -> StandardTextModule
A standard headline and body text.
Trait Implementations
sourceimpl Clone for StandardTextModule
impl Clone for StandardTextModule
sourcefn clone(&self) -> StandardTextModule
fn clone(&self) -> StandardTextModule
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for StandardTextModule
impl Debug for StandardTextModule
sourceimpl Default for StandardTextModule
impl Default for StandardTextModule
sourcefn default() -> StandardTextModule
fn default() -> StandardTextModule
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for StandardTextModule
impl<'de> Deserialize<'de> for StandardTextModule
sourcefn 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
sourceimpl PartialEq<StandardTextModule> for StandardTextModule
impl PartialEq<StandardTextModule> for StandardTextModule
sourcefn eq(&self, other: &StandardTextModule) -> bool
fn eq(&self, other: &StandardTextModule) -> bool
sourceimpl Serialize for StandardTextModule
impl Serialize for StandardTextModule
impl StructuralPartialEq for StandardTextModule
Auto Trait Implementations
impl RefUnwindSafe for StandardTextModule
impl Send for StandardTextModule
impl Sync for StandardTextModule
impl Unpin for StandardTextModule
impl UnwindSafe for StandardTextModule
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more