pub struct TextModuleData {
pub body: Option<String>,
pub header: Option<String>,
pub id: Option<String>,
pub localized_body: Option<LocalizedString>,
pub localized_header: Option<LocalizedString>,
}
Expand description
Data for Text module. All fields are optional. Header will be displayed if available, different types of bodies will be concatenated if they are defined.
This type is not used in any activity, and only used as part of another schema.
Fields§
§body: Option<String>
The body of the Text Module, which is defined as an uninterrupted string. Recommended maximum length is 500 characters to ensure full string is displayed on smaller screens.
header: Option<String>
The header of the Text Module. Recommended maximum length is 35 characters to ensure full string is displayed on smaller screens.
id: Option<String>
The ID associated with a text module. This field is here to enable ease of management of text modules.
localized_body: Option<LocalizedString>
Translated strings for the body. Recommended maximum length is 500 characters to ensure full string is displayed on smaller screens.
localized_header: Option<LocalizedString>
Translated strings for the header. Recommended maximum length is 35 characters to ensure full string is displayed on smaller screens.
Trait Implementations§
Source§impl Clone for TextModuleData
impl Clone for TextModuleData
Source§fn clone(&self) -> TextModuleData
fn clone(&self) -> TextModuleData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TextModuleData
impl Debug for TextModuleData
Source§impl Default for TextModuleData
impl Default for TextModuleData
Source§fn default() -> TextModuleData
fn default() -> TextModuleData
Source§impl<'de> Deserialize<'de> for TextModuleData
impl<'de> Deserialize<'de> for TextModuleData
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>,
Source§impl Serialize for TextModuleData
impl Serialize for TextModuleData
impl Part for TextModuleData
Auto Trait Implementations§
impl Freeze for TextModuleData
impl RefUnwindSafe for TextModuleData
impl Send for TextModuleData
impl Sync for TextModuleData
impl Unpin for TextModuleData
impl UnwindSafe for TextModuleData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more