pub struct NoopDeSerializer<Ok, Err> { /* private fields */ }Expand description
A serializer that does nothing. This is useful as a sub-type for serializers which only do certain parts of ser::Serializer.
Trait Implementations§
Source§impl<Ok, Err: Error> SerializeAttributes for NoopDeSerializer<Ok, Err>
impl<Ok, Err: Error> SerializeAttributes for NoopDeSerializer<Ok, Err>
Source§fn serialize_attribute<A: SerializeAttribute>(
&mut self,
_a: &A,
) -> Result<Self::Ok, Self::Error>
fn serialize_attribute<A: SerializeAttribute>( &mut self, _a: &A, ) -> Result<Self::Ok, Self::Error>
Serializes an attribute.
Source§impl<Ok, Err: Error> SerializeElement for NoopDeSerializer<Ok, Err>
impl<Ok, Err: Error> SerializeElement for NoopDeSerializer<Ok, Err>
Source§type ChildrenSerializeSeq = NoopDeSerializer<Ok, Err>
type ChildrenSerializeSeq = NoopDeSerializer<Ok, Err>
The type of the serializer that is returned when serializing the children of this element.
Source§type SerializeElementAttributes = NoopDeSerializer<Ok, Err>
type SerializeElementAttributes = NoopDeSerializer<Ok, Err>
The type of the serializer that is returned when serializing the attributes of this element.
Source§fn include_prefix(
&mut self,
_should_enforce: IncludePrefix,
) -> Result<Self::Ok, Self::Error>
fn include_prefix( &mut self, _should_enforce: IncludePrefix, ) -> Result<Self::Ok, Self::Error>
Always serialize this element with the given prefix.
Source§fn preferred_prefix(
&mut self,
_preferred_prefix: Option<Prefix<'_>>,
) -> Result<Self::Ok, Self::Error>
fn preferred_prefix( &mut self, _preferred_prefix: Option<Prefix<'_>>, ) -> Result<Self::Ok, Self::Error>
Set the preferred prefix for this element.
Source§fn serialize_attributes(
self,
) -> Result<Self::SerializeElementAttributes, Self::Error>
fn serialize_attributes( self, ) -> Result<Self::SerializeElementAttributes, Self::Error>
Serialize the attributes of this element.
Source§fn serialize_children(self) -> Result<Self::ChildrenSerializeSeq, Self::Error>
fn serialize_children(self) -> Result<Self::ChildrenSerializeSeq, Self::Error>
Serialize the children of this element.
Source§impl<Ok, Err: Error> SerializeElementAttributes for NoopDeSerializer<Ok, Err>
impl<Ok, Err: Error> SerializeElementAttributes for NoopDeSerializer<Ok, Err>
Source§type ChildrenSerializeSeq = NoopDeSerializer<Ok, Err>
type ChildrenSerializeSeq = NoopDeSerializer<Ok, Err>
The type of the value that is returned when serialization is successful.
Source§fn serialize_children(self) -> Result<Self::ChildrenSerializeSeq, Self::Error>
fn serialize_children(self) -> Result<Self::ChildrenSerializeSeq, Self::Error>
Serialize the children of this element.
Source§impl<Ok, Err: Error> SerializeSeq for NoopDeSerializer<Ok, Err>
impl<Ok, Err: Error> SerializeSeq for NoopDeSerializer<Ok, Err>
Auto Trait Implementations§
impl<Ok, Err> Freeze for NoopDeSerializer<Ok, Err>
impl<Ok, Err> RefUnwindSafe for NoopDeSerializer<Ok, Err>where
Ok: RefUnwindSafe,
Err: RefUnwindSafe,
impl<Ok, Err> Send for NoopDeSerializer<Ok, Err>
impl<Ok, Err> Sync for NoopDeSerializer<Ok, Err>
impl<Ok, Err> Unpin for NoopDeSerializer<Ok, Err>
impl<Ok, Err> UnwindSafe for NoopDeSerializer<Ok, Err>where
Ok: UnwindSafe,
Err: UnwindSafe,
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