Struct serde_with::formats::PreferOne
source · [−]pub struct PreferOne;
Expand description
Use in combination with OneOrMany
. Emit single element for lists of size 1.
Trait Implementations
impl Copy for PreferOne
impl Format for PreferOne
Use in combination with OneOrMany
. Emit single element for lists of size 1.
Auto Trait Implementations
impl RefUnwindSafe for PreferOne
impl Send for PreferOne
impl Sync for PreferOne
impl Unpin for PreferOne
impl UnwindSafe for PreferOne
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more