pub struct MessageArgumentFormatMetadata {
pub style: Option<String>,
pub style_kind: Option<MessageFormatStyleKind>,
}Expand description
Formatter metadata attached to an argument.
Fields§
§style: Option<String>Raw formatter style, when present.
style_kind: Option<MessageFormatStyleKind>Classification of the formatter style.
Trait Implementations§
Source§impl Clone for MessageArgumentFormatMetadata
impl Clone for MessageArgumentFormatMetadata
Source§fn clone(&self) -> MessageArgumentFormatMetadata
fn clone(&self) -> MessageArgumentFormatMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for MessageArgumentFormatMetadata
impl Default for MessageArgumentFormatMetadata
Source§fn default() -> MessageArgumentFormatMetadata
fn default() -> MessageArgumentFormatMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageArgumentFormatMetadata
impl<'de> Deserialize<'de> for MessageArgumentFormatMetadata
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 MessageArgumentFormatMetadata
impl PartialEq for MessageArgumentFormatMetadata
Source§fn eq(&self, other: &MessageArgumentFormatMetadata) -> bool
fn eq(&self, other: &MessageArgumentFormatMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MessageArgumentFormatMetadata
impl StructuralPartialEq for MessageArgumentFormatMetadata
Auto Trait Implementations§
impl Freeze for MessageArgumentFormatMetadata
impl RefUnwindSafe for MessageArgumentFormatMetadata
impl Send for MessageArgumentFormatMetadata
impl Sync for MessageArgumentFormatMetadata
impl Unpin for MessageArgumentFormatMetadata
impl UnsafeUnpin for MessageArgumentFormatMetadata
impl UnwindSafe for MessageArgumentFormatMetadata
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