pub struct LabelValue {
pub label: Option<String>,
pub localized_label: Option<LocalizedString>,
pub localized_value: Option<LocalizedString>,
pub value: Option<String>,
}
Expand description
A pair of text strings to be displayed in the details view. Note we no longer display LabelValue/LabelValueRow as a table, instead a list of items.
This type is not used in any activity, and only used as part of another schema.
Fields§
§label: Option<String>
The label for a specific row and column. Recommended maximum is 15 characters for a two-column layout and 30 characters for a one-column layout.
localized_label: Option<LocalizedString>
Translated strings for the label. Recommended maximum is 15 characters for a two-column layout and 30 characters for a one-column layout.
localized_value: Option<LocalizedString>
Translated strings for the value. Recommended maximum is 15 characters for a two-column layout and 30 characters for a one-column layout.
value: Option<String>
The value for a specific row and column. Recommended maximum is 15 characters for a two-column layout and 30 characters for a one-column layout.
Trait Implementations§
Source§impl Clone for LabelValue
impl Clone for LabelValue
Source§fn clone(&self) -> LabelValue
fn clone(&self) -> LabelValue
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LabelValue
impl Debug for LabelValue
Source§impl Default for LabelValue
impl Default for LabelValue
Source§fn default() -> LabelValue
fn default() -> LabelValue
Source§impl<'de> Deserialize<'de> for LabelValue
impl<'de> Deserialize<'de> for LabelValue
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 LabelValue
impl Serialize for LabelValue
impl Part for LabelValue
Auto Trait Implementations§
impl Freeze for LabelValue
impl RefUnwindSafe for LabelValue
impl Send for LabelValue
impl Sync for LabelValue
impl Unpin for LabelValue
impl UnwindSafe for LabelValue
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