pub struct OcsEnvelope<T> { /* private fields */ }Expand description
Top level of every JSON OCS response: {"ocs": {...}}.
The wrapper exists because OCS also answers in XML, where the same shape
appears as an ocs element; the name is part of the wire format, not a
decoration. A response without it is a decode failure, not an empty
payload.
Implementations§
Source§impl<T> OcsEnvelope<T>
impl<T> OcsEnvelope<T>
Trait Implementations§
Source§impl<T: Clone> Clone for OcsEnvelope<T>
impl<T: Clone> Clone for OcsEnvelope<T>
Source§impl<T: Debug> Debug for OcsEnvelope<T>
impl<T: Debug> Debug for OcsEnvelope<T>
Source§impl<'de, T> Deserialize<'de> for OcsEnvelope<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for OcsEnvelope<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T: Eq> Eq for OcsEnvelope<T>
Source§impl<T: PartialEq> PartialEq for OcsEnvelope<T>
impl<T: PartialEq> PartialEq for OcsEnvelope<T>
Source§impl<T> Serialize for OcsEnvelope<T>where
T: Serialize,
impl<T> Serialize for OcsEnvelope<T>where
T: Serialize,
impl<T: PartialEq> StructuralPartialEq for OcsEnvelope<T>
Auto Trait Implementations§
impl<T> Freeze for OcsEnvelope<T>
impl<T> RefUnwindSafe for OcsEnvelope<T>where
Ocs<T>: RefUnwindSafe,
impl<T> Send for OcsEnvelope<T>
impl<T> Sync for OcsEnvelope<T>
impl<T> Unpin for OcsEnvelope<T>
impl<T> UnsafeUnpin for OcsEnvelope<T>where
Ocs<T>: UnsafeUnpin,
impl<T> UnwindSafe for OcsEnvelope<T>where
Ocs<T>: 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