Skip to main content

De

Struct De 

Source
pub struct De<DRSR>(/* private fields */);
Expand description

Decode/Encode

Trait Implementations§

Source§

impl<DRSR> DEController for De<DRSR>

Source§

type DecodeWrapper<'inner, 'outer, 'rem> = DecodeWrapper<'inner> where 'inner: 'outer

Decode wrapper
Source§

type Error = Error

Error
Source§

type EncodeWrapper<'inner, 'outer, 'rem> = EncodeWrapper<'inner> where 'inner: 'outer

Encode wrapper
Source§

impl<DRSR: Debug> Debug for De<DRSR>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<DRSR> Decode<'_, De<DRSR>> for ()

Source§

fn decode(_: &mut DecodeWrapper<'_>) -> Result<Self>

Performs the conversion.
Source§

impl<'de, D: BorshDeserialize> Decode<'de, De<&mut Borsh>> for VerbatimDecoder<D>
where VerbatimDecoder<D>: Decode<'de, De<Borsh>>,

Available on crate feature borsh only.
Source§

fn decode(dw: &mut DecodeWrapper<'de>) -> Result<Self>

Performs the conversion.
Source§

impl<'de, D: BorshDeserialize> Decode<'de, De<&mut Borsh>> for VerbatimEncoder<D>
where VerbatimEncoder<D>: Decode<'de, De<Borsh>>,

Available on crate feature borsh only.
Source§

fn decode(dw: &mut DecodeWrapper<'de>) -> Result<Self>

Performs the conversion.
Source§

impl<'de, D: MessageRead<'de>> Decode<'de, De<&mut QuickProtobuf>> for VerbatimDecoder<D>

Available on crate feature quick-protobuf only.
Source§

fn decode(dw: &mut DecodeWrapper<'de>) -> Result<Self>

Performs the conversion.
Source§

impl<'de, D: MessageRead<'de>> Decode<'de, De<&mut QuickProtobuf>> for VerbatimEncoder<D>

Available on crate feature quick-protobuf only.
Source§

fn decode(dw: &mut DecodeWrapper<'de>) -> Result<Self>

Performs the conversion.
Source§

impl<'de, D: Deserialize<'de>, E: Deserialize<'de>> Decode<'de, De<&mut SerdeJson>> for GraphQlDecoder<D, E>
where GraphQlDecoder<D, E>: Decode<'de, De<SerdeJson>>,

Available on crate feature serde_json only.
Source§

fn decode(dw: &mut DecodeWrapper<'de>) -> Result<Self>

Performs the conversion.
Source§

impl<'de, R: Deserialize<'de>> Decode<'de, De<&mut SerdeJson>> for JsonRpcDecoder<R>
where JsonRpcDecoder<R>: Decode<'de, De<SerdeJson>>,

Available on crate feature serde_json only.
Source§

fn decode(dw: &mut DecodeWrapper<'de>) -> Result<Self>

Performs the conversion.
Source§

impl<'de, D: Deserialize<'de>> Decode<'de, De<&mut SerdeJson>> for VerbatimDecoder<D>

Available on crate feature serde_json only.
Source§

fn decode(dw: &mut DecodeWrapper<'de>) -> Result<Self>

Performs the conversion.
Source§

impl<'de, D: Deserialize<'de>> Decode<'de, De<&mut SerdeJson>> for VerbatimEncoder<D>

Available on crate feature serde_json only.
Source§

fn decode(dw: &mut DecodeWrapper<'de>) -> Result<Self>

Performs the conversion.
Source§

impl<'de, D, E> Decode<'de, De<()>> for GraphQlDecoder<D, E>
where D: Default,

Source§

fn decode(_: &mut DecodeWrapper<'de>) -> Result<Self>

Performs the conversion.
Source§

impl<'de, ON, Q, V> Decode<'de, De<()>> for GraphQlEncoder<ON, Q, V>
where Q: Default,

Source§

fn decode(_: &mut DecodeWrapper<'de>) -> Result<Self>

Performs the conversion.
Source§

impl<'de, R> Decode<'de, De<()>> for JsonRpcDecoder<R>
where R: Default,

Source§

fn decode(_: &mut DecodeWrapper<'de>) -> Result<Self>

Performs the conversion.
Source§

impl<'de, P> Decode<'de, De<()>> for JsonRpcEncoder<P>
where P: Default,

Source§

fn decode(_: &mut DecodeWrapper<'de>) -> Result<Self>

Performs the conversion.
Source§

impl<'de, D> Decode<'de, De<()>> for VerbatimDecoder<D>
where D: Default,

Source§

fn decode(_: &mut DecodeWrapper<'de>) -> Result<Self>

Performs the conversion.
Source§

impl<'de, D> Decode<'de, De<()>> for VerbatimEncoder<D>
where D: Default,

Source§

fn decode(_: &mut DecodeWrapper<'de>) -> Result<Self>

Performs the conversion.
Source§

impl<'de, D: BorshDeserialize> Decode<'de, De<Borsh>> for VerbatimDecoder<D>

Available on crate feature borsh only.
Source§

fn decode(dw: &mut DecodeWrapper<'de>) -> Result<Self>

Performs the conversion.
Source§

impl<'de, D: BorshDeserialize> Decode<'de, De<Borsh>> for VerbatimEncoder<D>

Available on crate feature borsh only.
Source§

fn decode(dw: &mut DecodeWrapper<'de>) -> Result<Self>

Performs the conversion.
Source§

impl<'de, D: MessageRead<'de>> Decode<'de, De<QuickProtobuf>> for VerbatimDecoder<D>

Available on crate feature quick-protobuf only.
Source§

fn decode(dw: &mut DecodeWrapper<'de>) -> Result<Self>

Performs the conversion.
Source§

impl<'de, D: MessageRead<'de>> Decode<'de, De<QuickProtobuf>> for VerbatimEncoder<D>

Available on crate feature quick-protobuf only.
Source§

fn decode(dw: &mut DecodeWrapper<'de>) -> Result<Self>

Performs the conversion.
Source§

impl<'de, D: Deserialize<'de>, E: Deserialize<'de>> Decode<'de, De<SerdeJson>> for GraphQlDecoder<D, E>

Available on crate feature serde_json only.
Source§

fn decode(dw: &mut DecodeWrapper<'de>) -> Result<Self>

Performs the conversion.
Source§

impl<'de, R: Deserialize<'de>> Decode<'de, De<SerdeJson>> for JsonRpcDecoder<R>

Available on crate feature serde_json only.
Source§

fn decode(dw: &mut DecodeWrapper<'de>) -> Result<Self>

Performs the conversion.
Source§

impl<'de, D: Deserialize<'de>> Decode<'de, De<SerdeJson>> for VerbatimDecoder<D>

Available on crate feature serde_json only.
Source§

fn decode(dw: &mut DecodeWrapper<'de>) -> Result<Self>

Performs the conversion.
Source§

impl<'de, D: Deserialize<'de>> Decode<'de, De<SerdeJson>> for VerbatimEncoder<D>

Available on crate feature serde_json only.
Source§

fn decode(dw: &mut DecodeWrapper<'de>) -> Result<Self>

Performs the conversion.
Source§

impl<DRSR> DecodeSeq<'_, De<DRSR>> for ()

Source§

fn decode_seq(_: &mut Vector<Self>, _: &mut DecodeWrapper<'_>) -> Result<()>

Decodes a sequence of itself into a buffer
Source§

impl<'de, D: BorshDeserialize> DecodeSeq<'de, De<&mut Borsh>> for VerbatimDecoder<D>
where VerbatimDecoder<D>: Decode<'de, De<Borsh>>,

Available on crate feature borsh only.
Source§

fn decode_seq( buffer: &mut Vector<Self>, dw: &mut DecodeWrapper<'de>, ) -> Result<()>

Decodes a sequence of itself into a buffer
Source§

impl<'de, D: BorshDeserialize> DecodeSeq<'de, De<&mut Borsh>> for VerbatimEncoder<D>
where VerbatimEncoder<D>: Decode<'de, De<Borsh>>,

Available on crate feature borsh only.
Source§

fn decode_seq( buffer: &mut Vector<Self>, dw: &mut DecodeWrapper<'de>, ) -> Result<()>

Decodes a sequence of itself into a buffer
Source§

impl<'de, D: MessageRead<'de>> DecodeSeq<'de, De<&mut QuickProtobuf>> for VerbatimDecoder<D>

Available on crate feature quick-protobuf only.
Source§

fn decode_seq( buffer: &mut Vector<Self>, dw: &mut DecodeWrapper<'de>, ) -> Result<()>

Decodes a sequence of itself into a buffer
Source§

impl<'de, D: MessageRead<'de>> DecodeSeq<'de, De<&mut QuickProtobuf>> for VerbatimEncoder<D>

Available on crate feature quick-protobuf only.
Source§

fn decode_seq( buffer: &mut Vector<Self>, dw: &mut DecodeWrapper<'de>, ) -> Result<()>

Decodes a sequence of itself into a buffer
Source§

impl<'de, D: Deserialize<'de>, E: Deserialize<'de>> DecodeSeq<'de, De<&mut SerdeJson>> for GraphQlDecoder<D, E>
where GraphQlDecoder<D, E>: Decode<'de, De<SerdeJson>>,

Available on crate feature serde_json only.
Source§

fn decode_seq( buffer: &mut Vector<Self>, dw: &mut DecodeWrapper<'de>, ) -> Result<()>

Decodes a sequence of itself into a buffer
Source§

impl<'de, R: Deserialize<'de>> DecodeSeq<'de, De<&mut SerdeJson>> for JsonRpcDecoder<R>
where JsonRpcDecoder<R>: Decode<'de, De<SerdeJson>>,

Available on crate feature serde_json only.
Source§

fn decode_seq( buffer: &mut Vector<Self>, dw: &mut DecodeWrapper<'de>, ) -> Result<()>

Decodes a sequence of itself into a buffer
Source§

impl<'de, D: Deserialize<'de>> DecodeSeq<'de, De<&mut SerdeJson>> for VerbatimDecoder<D>

Available on crate feature serde_json only.
Source§

fn decode_seq( buffer: &mut Vector<Self>, dw: &mut DecodeWrapper<'de>, ) -> Result<()>

Decodes a sequence of itself into a buffer
Source§

impl<'de, D: Deserialize<'de>> DecodeSeq<'de, De<&mut SerdeJson>> for VerbatimEncoder<D>

Available on crate feature serde_json only.
Source§

fn decode_seq( buffer: &mut Vector<Self>, dw: &mut DecodeWrapper<'de>, ) -> Result<()>

Decodes a sequence of itself into a buffer
Source§

impl<'de, D, E> DecodeSeq<'de, De<()>> for GraphQlDecoder<D, E>
where D: Default,

Source§

fn decode_seq(_: &mut Vector<Self>, _: &mut DecodeWrapper<'de>) -> Result<()>

Decodes a sequence of itself into a buffer
Source§

impl<'de, ON, Q, V> DecodeSeq<'de, De<()>> for GraphQlEncoder<ON, Q, V>
where Q: Default,

Source§

fn decode_seq(_: &mut Vector<Self>, _: &mut DecodeWrapper<'de>) -> Result<()>

Decodes a sequence of itself into a buffer
Source§

impl<'de, R> DecodeSeq<'de, De<()>> for JsonRpcDecoder<R>
where R: Default,

Source§

fn decode_seq(_: &mut Vector<Self>, _: &mut DecodeWrapper<'de>) -> Result<()>

Decodes a sequence of itself into a buffer
Source§

impl<'de, P> DecodeSeq<'de, De<()>> for JsonRpcEncoder<P>
where P: Default,

Source§

fn decode_seq(_: &mut Vector<Self>, _: &mut DecodeWrapper<'de>) -> Result<()>

Decodes a sequence of itself into a buffer
Source§

impl<'de, D> DecodeSeq<'de, De<()>> for VerbatimDecoder<D>
where D: Default,

Source§

fn decode_seq(_: &mut Vector<Self>, _: &mut DecodeWrapper<'de>) -> Result<()>

Decodes a sequence of itself into a buffer
Source§

impl<'de, D> DecodeSeq<'de, De<()>> for VerbatimEncoder<D>
where D: Default,

Source§

fn decode_seq(_: &mut Vector<Self>, _: &mut DecodeWrapper<'de>) -> Result<()>

Decodes a sequence of itself into a buffer
Source§

impl<'de, D: BorshDeserialize> DecodeSeq<'de, De<Borsh>> for VerbatimDecoder<D>

Available on crate feature borsh only.
Source§

fn decode_seq( _buffer: &mut Vector<Self>, _dw: &mut DecodeWrapper<'de>, ) -> Result<()>

Decodes a sequence of itself into a buffer
Source§

impl<'de, D: BorshDeserialize> DecodeSeq<'de, De<Borsh>> for VerbatimEncoder<D>

Available on crate feature borsh only.
Source§

fn decode_seq( _buffer: &mut Vector<Self>, _dw: &mut DecodeWrapper<'de>, ) -> Result<()>

Decodes a sequence of itself into a buffer
Source§

impl<'de, D: MessageRead<'de>> DecodeSeq<'de, De<QuickProtobuf>> for VerbatimDecoder<D>

Available on crate feature quick-protobuf only.
Source§

fn decode_seq( _buffer: &mut Vector<Self>, _dw: &mut DecodeWrapper<'de>, ) -> Result<()>

Decodes a sequence of itself into a buffer
Source§

impl<'de, D: MessageRead<'de>> DecodeSeq<'de, De<QuickProtobuf>> for VerbatimEncoder<D>

Available on crate feature quick-protobuf only.
Source§

fn decode_seq( _buffer: &mut Vector<Self>, _dw: &mut DecodeWrapper<'de>, ) -> Result<()>

Decodes a sequence of itself into a buffer
Source§

impl<'de, D: Deserialize<'de>, E: Deserialize<'de>> DecodeSeq<'de, De<SerdeJson>> for GraphQlDecoder<D, E>

Available on crate feature serde_json only.
Source§

fn decode_seq( buffer: &mut Vector<Self>, dw: &mut DecodeWrapper<'de>, ) -> Result<()>

Decodes a sequence of itself into a buffer
Source§

impl<'de, R: Deserialize<'de>> DecodeSeq<'de, De<SerdeJson>> for JsonRpcDecoder<R>

Available on crate feature serde_json only.
Source§

fn decode_seq( buffer: &mut Vector<Self>, dw: &mut DecodeWrapper<'de>, ) -> Result<()>

Decodes a sequence of itself into a buffer
Source§

impl<'de, D: Deserialize<'de>> DecodeSeq<'de, De<SerdeJson>> for VerbatimDecoder<D>

Available on crate feature serde_json only.
Source§

fn decode_seq( buffer: &mut Vector<Self>, dw: &mut DecodeWrapper<'de>, ) -> Result<()>

Decodes a sequence of itself into a buffer
Source§

impl<'de, D: Deserialize<'de>> DecodeSeq<'de, De<SerdeJson>> for VerbatimEncoder<D>

Available on crate feature serde_json only.
Source§

fn decode_seq( buffer: &mut Vector<Self>, dw: &mut DecodeWrapper<'de>, ) -> Result<()>

Decodes a sequence of itself into a buffer
Source§

impl<'de, D: BorshSerialize> Encode<De<&mut Borsh>> for VerbatimDecoder<D>

Available on crate feature borsh only.
Source§

fn encode(&self, ew: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<'de, D: BorshSerialize> Encode<De<&mut Borsh>> for VerbatimEncoder<D>

Available on crate feature borsh only.
Source§

fn encode(&self, ew: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<'de, D: MessageWrite> Encode<De<&mut QuickProtobuf>> for VerbatimDecoder<D>

Available on crate feature quick-protobuf only.
Source§

fn encode(&self, ew: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<'de, D: MessageWrite> Encode<De<&mut QuickProtobuf>> for VerbatimEncoder<D>

Available on crate feature quick-protobuf only.
Source§

fn encode(&self, ew: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<'de, D: Serialize, E: Serialize> Encode<De<&mut SerdeJson>> for GraphQlDecoder<D, E>

Available on crate feature serde_json only.
Source§

fn encode(&self, ew: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<'de, ON: Serialize, Q: Serialize, V: Serialize> Encode<De<&mut SerdeJson>> for GraphQlEncoder<ON, Q, V>
where GraphQlEncoder<ON, Q, V>: Encode<De<SerdeJson>>,

Available on crate feature serde_json only.
Source§

fn encode(&self, ew: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<'de, R: Serialize> Encode<De<&mut SerdeJson>> for JsonRpcDecoder<R>

Available on crate feature serde_json only.
Source§

fn encode(&self, ew: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<'de, R: Serialize> Encode<De<&mut SerdeJson>> for JsonRpcEncoder<R>

Available on crate feature serde_json only.
Source§

fn encode(&self, ew: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<'de, D: Serialize> Encode<De<&mut SerdeJson>> for VerbatimDecoder<D>

Available on crate feature serde_json only.
Source§

fn encode(&self, ew: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<'de, D: Serialize> Encode<De<&mut SerdeJson>> for VerbatimEncoder<D>

Available on crate feature serde_json only.
Source§

fn encode(&self, ew: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<D, E> Encode<De<()>> for GraphQlDecoder<D, E>

Source§

fn encode(&self, _: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<ON, Q, V> Encode<De<()>> for GraphQlEncoder<ON, Q, V>

Source§

fn encode(&self, _: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<D> Encode<De<()>> for JsonRpcDecoder<D>

Source§

fn encode(&self, _: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<P> Encode<De<()>> for JsonRpcEncoder<P>

Source§

fn encode(&self, _: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<D> Encode<De<()>> for VerbatimDecoder<D>

Source§

fn encode(&self, _: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<D> Encode<De<()>> for VerbatimEncoder<D>

Source§

fn encode(&self, _: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<D: BorshSerialize> Encode<De<Borsh>> for VerbatimDecoder<D>

Available on crate feature borsh only.
Source§

fn encode(&self, ew: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<D: BorshSerialize> Encode<De<Borsh>> for VerbatimEncoder<D>

Available on crate feature borsh only.
Source§

fn encode(&self, ew: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<DRSR> Encode<De<DRSR>> for ()

Source§

fn encode(&self, _: &mut EncodeWrapper<'_>) -> Result<(), Error>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<D: MessageWrite> Encode<De<QuickProtobuf>> for VerbatimDecoder<D>

Available on crate feature quick-protobuf only.
Source§

fn encode(&self, ew: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<D: MessageWrite> Encode<De<QuickProtobuf>> for VerbatimEncoder<D>

Available on crate feature quick-protobuf only.
Source§

fn encode(&self, ew: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<T> Encode<De<SerdeJson>> for &[T]
where T: Serialize,

Available on crate feature serde_json only.
Source§

fn encode(&self, ew: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<T, const N: usize> Encode<De<SerdeJson>> for [T; N]
where T: Serialize,

Available on crate feature serde_json only.
Source§

fn encode(&self, ew: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<L, T, const N: usize> Encode<De<SerdeJson>> for ArrayVector<L, T, N>

Available on crate feature serde_json only.
Source§

fn encode(&self, ew: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<A, DRSR, P, T, TP> Encode<De<SerdeJson>> for BatchElems<'_, A, DRSR, P, T, TP>
where A: Api, P: Package<A, DRSR, T, TP>, P::ExternalRequestContent: Serialize, T: Transport<TP>,

Available on crate features serde_json and client-api-framework only.
Source§

fn encode(&self, ew: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<D: Serialize, E: Serialize> Encode<De<SerdeJson>> for GraphQlDecoder<D, E>

Available on crate feature serde_json only.
Source§

fn encode(&self, ew: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<ON: Serialize, Q: Serialize, V: Serialize> Encode<De<SerdeJson>> for GraphQlEncoder<ON, Q, V>

Available on crate feature serde_json only.
Source§

fn encode(&self, ew: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<R: Serialize> Encode<De<SerdeJson>> for JsonRpcDecoder<R>

Available on crate feature serde_json only.
Source§

fn encode(&self, ew: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<R: Serialize> Encode<De<SerdeJson>> for JsonRpcEncoder<R>

Available on crate feature serde_json only.
Source§

fn encode(&self, ew: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<T> Encode<De<SerdeJson>> for Vector<T>
where T: Serialize,

Available on crate feature serde_json only.
Source§

fn encode(&self, ew: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<D: Serialize> Encode<De<SerdeJson>> for VerbatimDecoder<D>

Available on crate feature serde_json only.
Source§

fn encode(&self, ew: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.
Source§

impl<D: Serialize> Encode<De<SerdeJson>> for VerbatimEncoder<D>

Available on crate feature serde_json only.
Source§

fn encode(&self, ew: &mut EncodeWrapper<'_>) -> Result<()>

Performs the conversion.
Source§

fn is_null(&self) -> bool

If this instance can be desired nullable.

Auto Trait Implementations§

§

impl<DRSR> Freeze for De<DRSR>

§

impl<DRSR> RefUnwindSafe for De<DRSR>
where DRSR: RefUnwindSafe,

§

impl<DRSR> Send for De<DRSR>
where DRSR: Send,

§

impl<DRSR> Sync for De<DRSR>
where DRSR: Sync,

§

impl<DRSR> Unpin for De<DRSR>
where DRSR: Unpin,

§

impl<DRSR> UnwindSafe for De<DRSR>
where DRSR: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more