pub struct ContentUnit {
pub content: String,
pub unit: String,
}Expand description
{content, unit} pair — used by nearby-market for compact value+unit display.
Fields§
§content: String§unit: StringTrait Implementations§
Source§impl Clone for ContentUnit
impl Clone for ContentUnit
Source§fn clone(&self) -> ContentUnit
fn clone(&self) -> ContentUnit
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 ContentUnit
impl Debug for ContentUnit
Source§impl<'de> Deserialize<'de> for ContentUnit
impl<'de> Deserialize<'de> for ContentUnit
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
Auto Trait Implementations§
impl Freeze for ContentUnit
impl RefUnwindSafe for ContentUnit
impl Send for ContentUnit
impl Sync for ContentUnit
impl Unpin for ContentUnit
impl UnsafeUnpin for ContentUnit
impl UnwindSafe for ContentUnit
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