Struct serde_with::ser::SerializeAsWrap[][src]

pub struct SerializeAsWrap<'a, T: ?Sized, U: ?Sized> { /* fields omitted */ }

Helper type to implement SerializeAs for container-like types.

Implementations

impl<'a, T, U> SerializeAsWrap<'a, T, U> where
    T: ?Sized,
    U: ?Sized
[src]

pub fn new(value: &'a T) -> Self[src]

Create new instance with provided value.

Trait Implementations

impl<'a, T: Debug + ?Sized, U: Debug + ?Sized> Debug for SerializeAsWrap<'a, T, U>[src]

impl<'a, T, U> From<&'a T> for SerializeAsWrap<'a, T, U> where
    T: ?Sized,
    U: ?Sized,
    U: SerializeAs<T>, 
[src]

impl<'a, T, U> Serialize for SerializeAsWrap<'a, T, U> where
    T: ?Sized,
    U: ?Sized,
    U: SerializeAs<T>, 
[src]

Auto Trait Implementations

impl<'a, T: ?Sized, U: ?Sized> RefUnwindSafe for SerializeAsWrap<'a, T, U> where
    T: RefUnwindSafe,
    U: RefUnwindSafe

impl<'a, T: ?Sized, U: ?Sized> Send for SerializeAsWrap<'a, T, U> where
    T: Sync,
    U: Send

impl<'a, T: ?Sized, U: ?Sized> Sync for SerializeAsWrap<'a, T, U> where
    T: Sync,
    U: Sync

impl<'a, T: ?Sized, U: ?Sized> Unpin for SerializeAsWrap<'a, T, U> where
    U: Unpin

impl<'a, T: ?Sized, U: ?Sized> UnwindSafe for SerializeAsWrap<'a, T, U> where
    T: RefUnwindSafe,
    U: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.