pub struct Claims {
pub root: Option<String>,
pub records: Vec<Record>,
pub roles: Vec<KnownRole>,
pub admissions: Vec<KnownAdmission>,
}Expand description
What the app holds to check records against.
Fields§
§root: Option<String>The commons root DID.
records: Vec<Record>Records the app has read: credentials and revocations (the root’s and its operators’), the root’s operator records, accounts’ declarations. A record whose body does not hash to its CID is ignored.
roles: Vec<KnownRole>§admissions: Vec<KnownAdmission>Trait Implementations§
Source§impl Claims for Claims
impl Claims for Claims
Source§impl<'de> Deserialize<'de> for Claims
impl<'de> Deserialize<'de> for Claims
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 Endorsements for Claims
impl Endorsements for Claims
Source§fn credential_issuer<'a>(&'a self, credential_uri: &'a str) -> Option<&'a str>
fn credential_issuer<'a>(&'a self, credential_uri: &'a str) -> Option<&'a str>
The repo holding the credential at credential_uri, when it is an admin writer for every intact
version held there (Claims::issuer_of); None when none is held.
Source§fn endorses(&self, did: &str, collection: &str) -> bool
fn endorses(&self, did: &str, collection: &str) -> bool
Whether the root vouches for
did’s publisher declaration and its writes include collection
(chain::vouched, chain::writer).Auto Trait Implementations§
impl Forget for Claims
impl Freeze for Claims
impl Move for Claims
impl RefUnwindSafe for Claims
impl Send for Claims
impl Sync for Claims
impl Unpin for Claims
impl UnsafeUnpin for Claims
impl UnwindSafe for Claims
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