pub struct EnvelopeProbe {
pub kind: String,
pub format_version: u32,
}Expand description
Identifying prefix of a durable envelope document.
Readers decode this probe before the full document so that objects written
with an unknown kind or an unsupported format version fail with a precise
error instead of a generic decode error. kind is deliberately a string
(not an enum) so future kinds remain reportable.
Fields§
§kind: StringDurable family declared by the stored object.
format_version: u32Family-independent version gate declared by the stored object.
Trait Implementations§
Source§impl Debug for EnvelopeProbe
impl Debug for EnvelopeProbe
Source§impl<'de> Deserialize<'de> for EnvelopeProbe
impl<'de> Deserialize<'de> for EnvelopeProbe
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
Auto Trait Implementations§
impl Freeze for EnvelopeProbe
impl RefUnwindSafe for EnvelopeProbe
impl Send for EnvelopeProbe
impl Sync for EnvelopeProbe
impl Unpin for EnvelopeProbe
impl UnsafeUnpin for EnvelopeProbe
impl UnwindSafe for EnvelopeProbe
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