pub struct Declared<T>(/* private fields */);Expand description
A value corroborated from a source that is real but not proof – read
out of a process’s own command line, for instance, rather than attested
by the kernel. Mirrors mail4agent-attest::Declared, which this crate
cannot depend on directly: mail4agent/CLAUDE.md keeps this crate’s
dependency list empty of everything that is not serialisation, and that
crate links Windows process APIs to do its job. Getting the inner value
means calling Declared::into_inner or Declared::inner_ref, never a
plain field read, so a caller cannot treat a corroborated fact with the
same weight as an attested one by accident. See SessionCard for
where the split this type exists to preserve actually matters.
Implementations§
Trait Implementations§
Source§impl<'de, T> Deserialize<'de> for Declared<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Declared<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 Declared<T>
impl<T: PartialEq> StructuralPartialEq for Declared<T>
Auto Trait Implementations§
impl<T> Freeze for Declared<T>where
T: Freeze,
impl<T> RefUnwindSafe for Declared<T>where
T: RefUnwindSafe,
impl<T> Send for Declared<T>where
T: Send,
impl<T> Sync for Declared<T>where
T: Sync,
impl<T> Unpin for Declared<T>where
T: Unpin,
impl<T> UnsafeUnpin for Declared<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Declared<T>where
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