pub struct SpecsModuleEntry<A>(pub ModuleSpecEntry<A>);Expand description
One of a v3 Specs distribution’s own modules, read strictly.
ModuleSpecEntry reads a specification leniently: types and values default to empty
and unknown members are ignored, so a module definition ({"access": …, "value": …}) would
read as an empty specification and lose its content. A Specs distribution’s own modules are
read through this type instead, which accepts only types, values and doc.
Dependencies keep the lenient reading.
Tuple Fields§
§0: ModuleSpecEntry<A>Trait Implementations§
Source§impl<A: Clone> Clone for SpecsModuleEntry<A>
impl<A: Clone> Clone for SpecsModuleEntry<A>
Source§impl<A: Debug> Debug for SpecsModuleEntry<A>
impl<A: Debug> Debug for SpecsModuleEntry<A>
Source§impl<'de, A: Deserialize<'de>> Deserialize<'de> for SpecsModuleEntry<A>
impl<'de, A: Deserialize<'de>> Deserialize<'de> for SpecsModuleEntry<A>
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<A> From<SpecsModuleEntry<A>> for ModuleSpecEntry<A>
impl<A> From<SpecsModuleEntry<A>> for ModuleSpecEntry<A>
Source§fn from(entry: SpecsModuleEntry<A>) -> Self
fn from(entry: SpecsModuleEntry<A>) -> Self
Converts to this type from the input type.
Source§impl<A: PartialEq> PartialEq for SpecsModuleEntry<A>
impl<A: PartialEq> PartialEq for SpecsModuleEntry<A>
impl<A: PartialEq> StructuralPartialEq for SpecsModuleEntry<A>
Auto Trait Implementations§
impl<A> Freeze for SpecsModuleEntry<A>where
ModuleSpecEntry<A>: Freeze,
impl<A> RefUnwindSafe for SpecsModuleEntry<A>where
ModuleSpecEntry<A>: RefUnwindSafe,
impl<A> Send for SpecsModuleEntry<A>where
ModuleSpecEntry<A>: Send,
impl<A> Sync for SpecsModuleEntry<A>where
ModuleSpecEntry<A>: Sync,
impl<A> Unpin for SpecsModuleEntry<A>where
ModuleSpecEntry<A>: Unpin,
impl<A> UnsafeUnpin for SpecsModuleEntry<A>where
ModuleSpecEntry<A>: UnsafeUnpin,
impl<A> UnwindSafe for SpecsModuleEntry<A>where
ModuleSpecEntry<A>: 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