pub struct StringUnit {
pub state: EntryStatus,
pub value: String,
}Fields§
§state: EntryStatus§value: StringImplementations§
Source§impl StringUnit
impl StringUnit
pub fn new(state: EntryStatus, value: &str) -> Self
Trait Implementations§
Source§impl Clone for StringUnit
impl Clone for StringUnit
Source§fn clone(&self) -> StringUnit
fn clone(&self) -> StringUnit
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 Debug for StringUnit
impl Debug for StringUnit
Source§impl<'de> Deserialize<'de> for StringUnit
impl<'de> Deserialize<'de> for StringUnit
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 From<StringUnit> for Localization
impl From<StringUnit> for Localization
Source§fn from(string_unit: StringUnit) -> Self
fn from(string_unit: StringUnit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StringUnit
impl PartialEq for StringUnit
Source§fn eq(&self, other: &StringUnit) -> bool
fn eq(&self, other: &StringUnit) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for StringUnit
impl Serialize for StringUnit
impl Eq for StringUnit
impl StructuralPartialEq for StringUnit
Auto Trait Implementations§
impl Freeze for StringUnit
impl RefUnwindSafe for StringUnit
impl Send for StringUnit
impl Sync for StringUnit
impl Unpin for StringUnit
impl UnsafeUnpin for StringUnit
impl UnwindSafe for StringUnit
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