pub enum StringOnly {
String,
}Expand description
String is the only allowed Array/Map element type.
Variants§
String
Trait Implementations§
Source§impl Clone for StringOnly
impl Clone for StringOnly
Source§fn clone(&self) -> StringOnly
fn clone(&self) -> StringOnly
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 moreimpl Copy for StringOnly
Source§impl Debug for StringOnly
impl Debug for StringOnly
Source§impl<'de> Deserialize<'de> for StringOnly
impl<'de> Deserialize<'de> for StringOnly
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
impl Eq for StringOnly
Source§impl PartialEq for StringOnly
impl PartialEq for StringOnly
Source§fn eq(&self, other: &StringOnly) -> bool
fn eq(&self, other: &StringOnly) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StringOnly
Auto Trait Implementations§
impl Freeze for StringOnly
impl RefUnwindSafe for StringOnly
impl Send for StringOnly
impl Sync for StringOnly
impl Unpin for StringOnly
impl UnsafeUnpin for StringOnly
impl UnwindSafe for StringOnly
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