pub struct Envelope<P> {
pub position: Position,
pub kind: Kind,
pub id: DefinitionId,
pub version: u32,
pub metadata: Metadata,
pub payload: P,
}Fields§
§position: Position§kind: Kind§id: DefinitionId§version: u32§metadata: Metadata§payload: PTrait Implementations§
Source§impl<'de, P> Deserialize<'de> for Envelope<P>where
P: Deserialize<'de>,
impl<'de, P> Deserialize<'de> for Envelope<P>where
P: Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Envelope<P>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Envelope<P>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<P> Eq for Envelope<P>where
P: Eq,
Source§impl<P> Serialize for Envelope<P>where
P: Serialize,
impl<P> Serialize for Envelope<P>where
P: Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<P> StructuralPartialEq for Envelope<P>where
P: PartialEq,
Auto Trait Implementations§
impl<P> Freeze for Envelope<P>where
P: Freeze,
impl<P> RefUnwindSafe for Envelope<P>where
P: RefUnwindSafe,
impl<P> Send for Envelope<P>where
P: Send,
impl<P> Sync for Envelope<P>where
P: Sync,
impl<P> Unpin for Envelope<P>where
P: Unpin,
impl<P> UnsafeUnpin for Envelope<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for Envelope<P>where
P: 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