pub struct Serialize;
Expand description
Serialization options.
Implementations§
Source§impl Serialize
impl Serialize
Sourcepub fn proto<T: ReflectMessage, S: Serializer>(
&self,
x: &T,
s: S,
) -> Result<S::Ok, S::Error>
pub fn proto<T: ReflectMessage, S: Serializer>( &self, x: &T, s: S, ) -> Result<S::Ok, S::Error>
Serializes ReflectMessage.
Sourcepub fn proto_fmt<T: ProtoFmt, S: Serializer>(
&self,
x: &T,
s: S,
) -> Result<S::Ok, S::Error>
pub fn proto_fmt<T: ProtoFmt, S: Serializer>( &self, x: &T, s: S, ) -> Result<S::Ok, S::Error>
Serializes ProtoFmt.
Sourcepub fn proto_fmt_to_json<T: ProtoFmt>(&self, x: &T) -> String
pub fn proto_fmt_to_json<T: ProtoFmt>(&self, x: &T) -> String
Serializes ProtoFmt to json.
Sourcepub fn proto_fmt_to_yaml<T: ProtoFmt>(&self, x: &T) -> String
pub fn proto_fmt_to_yaml<T: ProtoFmt>(&self, x: &T) -> String
Serializes ProtoFmt to yaml
Sourcepub fn proto_repr<T: ProtoRepr, S: Serializer>(
&self,
x: &T::Type,
s: S,
) -> Result<S::Ok, S::Error>
pub fn proto_repr<T: ProtoRepr, S: Serializer>( &self, x: &T::Type, s: S, ) -> Result<S::Ok, S::Error>
Serializes ProtoRepr.
Sourcepub fn proto_repr_to_json<T: ProtoRepr>(&self, x: &T::Type) -> String
pub fn proto_repr_to_json<T: ProtoRepr>(&self, x: &T::Type) -> String
Serializes ProtoRepr to json.
Sourcepub fn proto_repr_to_yaml<T: ProtoRepr>(&self, x: &T::Type) -> String
pub fn proto_repr_to_yaml<T: ProtoRepr>(&self, x: &T::Type) -> String
Serializes ProtoRepr to yaml
Auto Trait Implementations§
impl Freeze for Serialize
impl RefUnwindSafe for Serialize
impl Send for Serialize
impl Sync for Serialize
impl Unpin for Serialize
impl UnwindSafe for Serialize
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