pub struct Attestation {
pub capacity: Option<String>,
pub signed: bool,
}Expand description
A single human attestation: the role/capacity it was made under (a taxonomy TermId, kept as an
optional String here so the vocabulary stays open) and whether it is cryptographically signed.
Only signed attestations count toward a HumanConsensus threshold — an unsigned attestation is not
part of the accountable evidence chain, so it cannot activate authority over someone.
Fields§
§capacity: Option<String>The role/capacity credential the attestation was made under (e.g.
urn:qualia:agency-domain:welfare:healthcare or a registered_physician capacity term).
None = an attestation carrying no specific declared capacity.
signed: boolWhether this attestation is cryptographically signed. Unsigned attestations never count.
Implementations§
Source§impl Attestation
impl Attestation
Trait Implementations§
Source§impl Clone for Attestation
impl Clone for Attestation
Source§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
impl Eq for Attestation
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