pub struct Attestation {
pub identity: String,
pub role: String,
pub trust_level: TrustLevel,
pub timestamp: Option<String>,
pub note: Option<String>,
}Expand description
An attestation record capturing who produced or reviewed content.
Attestation blocks start with !attest and record the identity,
role, trust level, and optional timestamp of an author or reviewer.
Fields§
§identity: StringThe identity of the attester (person, tool, or agent name).
role: StringThe role of the attester (e.g. "author", "reviewer", "agent").
trust_level: TrustLevelThe trust level assigned to this attestation.
timestamp: Option<String>An optional ISO-8601 timestamp for when the attestation was made.
note: Option<String>Optional free-form notes or justification.
Implementations§
Source§impl Attestation
impl Attestation
Trait Implementations§
Source§impl Clone for Attestation
impl Clone for Attestation
Source§fn clone(&self) -> Attestation
fn clone(&self) -> Attestation
Returns a duplicate of the value. Read more
1.0.0 · 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 Attestation
impl Debug for Attestation
Source§impl<'de> Deserialize<'de> for Attestation
impl<'de> Deserialize<'de> for Attestation
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 PartialEq for Attestation
impl PartialEq for Attestation
Source§impl Serialize for Attestation
impl Serialize for Attestation
impl StructuralPartialEq for Attestation
Auto Trait Implementations§
impl Freeze for Attestation
impl RefUnwindSafe for Attestation
impl Send for Attestation
impl Sync for Attestation
impl Unpin for Attestation
impl UnsafeUnpin for Attestation
impl UnwindSafe for Attestation
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