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§
Source§impl StandardTextModule
impl StandardTextModule
Sourcepub fn new(body: ParagraphComponent) -> StandardTextModule
pub fn new(body: ParagraphComponent) -> StandardTextModule
A standard headline and body text.
Trait Implementations§
Source§impl Clone for StandardTextModule
impl Clone for StandardTextModule
Source§fn clone(&self) -> StandardTextModule
fn clone(&self) -> StandardTextModule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StandardTextModule
impl Debug for StandardTextModule
Source§impl Default for StandardTextModule
impl Default for StandardTextModule
Source§fn default() -> StandardTextModule
fn default() -> StandardTextModule
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StandardTextModule
impl<'de> Deserialize<'de> for StandardTextModule
Source§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
Source§impl PartialEq for StandardTextModule
impl PartialEq for StandardTextModule
Source§impl Serialize for StandardTextModule
impl Serialize for StandardTextModule
impl StructuralPartialEq for StandardTextModule
Auto Trait Implementations§
impl Freeze for StandardTextModule
impl RefUnwindSafe for StandardTextModule
impl Send for StandardTextModule
impl Sync for StandardTextModule
impl Unpin for StandardTextModule
impl UnsafeUnpin for StandardTextModule
impl UnwindSafe for StandardTextModule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more