pub struct LikelihoodSpecWire {
pub response: ResponseFamily,
pub link: InverseLink,
}Expand description
Transparent serde shadow of LikelihoodSpec with the identical wire shape
(response, link). All (de)serialization of LikelihoodSpec routes
through this type so the legal-matrix check in
TryFrom<LikelihoodSpecWire> runs on every load, closing the
saved-bytes hole: an illegal (response, link) cell deserializes into a
serde error instead of a silently-masked spec.
Fields§
§response: ResponseFamily§link: InverseLinkTrait Implementations§
Source§impl Clone for LikelihoodSpecWire
impl Clone for LikelihoodSpecWire
Source§fn clone(&self) -> LikelihoodSpecWire
fn clone(&self) -> LikelihoodSpecWire
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LikelihoodSpecWire
impl Debug for LikelihoodSpecWire
Source§impl<'de> Deserialize<'de> for LikelihoodSpecWire
impl<'de> Deserialize<'de> for LikelihoodSpecWire
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
Source§impl From<LikelihoodSpec> for LikelihoodSpecWire
impl From<LikelihoodSpec> for LikelihoodSpecWire
Source§fn from(spec: LikelihoodSpec) -> Self
fn from(spec: LikelihoodSpec) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LikelihoodSpecWire
impl PartialEq for LikelihoodSpecWire
Source§fn eq(&self, other: &LikelihoodSpecWire) -> bool
fn eq(&self, other: &LikelihoodSpecWire) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LikelihoodSpecWire
impl Serialize for LikelihoodSpecWire
impl StructuralPartialEq for LikelihoodSpecWire
Source§impl TryFrom<LikelihoodSpecWire> for LikelihoodSpec
impl TryFrom<LikelihoodSpecWire> for LikelihoodSpec
Source§type Error = IllegalLikelihoodCell
type Error = IllegalLikelihoodCell
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for LikelihoodSpecWire
impl RefUnwindSafe for LikelihoodSpecWire
impl Send for LikelihoodSpecWire
impl Sync for LikelihoodSpecWire
impl Unpin for LikelihoodSpecWire
impl UnsafeUnpin for LikelihoodSpecWire
impl UnwindSafe for LikelihoodSpecWire
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