pub struct CredentialDecl {
pub name: Ident,
pub kind: Ident,
pub span: SourceSpan,
}Expand description
credential <name> { kind <kind> } (std.custody; DR-0053 §5): a bare
handle naming a custodian entry — governance supplies reality via
grant credential … -> credential:<addr>, and material never appears in
source. kind exists so the checker can statically reject an operation
the credential cannot perform (sign … with a bearer); the custodian’s
registered kind is authoritative and mismatch is a check error. Kinds are
spelled with underscores in source (hmac_sha256) and normalize to the
protocol’s kebab-case.
Fields§
§name: Ident§kind: Ident§span: SourceSpanTrait Implementations§
Source§impl Clone for CredentialDecl
impl Clone for CredentialDecl
Source§fn clone(&self) -> CredentialDecl
fn clone(&self) -> CredentialDecl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CredentialDecl
impl Debug for CredentialDecl
impl Eq for CredentialDecl
Source§impl PartialEq for CredentialDecl
impl PartialEq for CredentialDecl
impl StructuralPartialEq for CredentialDecl
Auto Trait Implementations§
impl Freeze for CredentialDecl
impl RefUnwindSafe for CredentialDecl
impl Send for CredentialDecl
impl Sync for CredentialDecl
impl Unpin for CredentialDecl
impl UnsafeUnpin for CredentialDecl
impl UnwindSafe for CredentialDecl
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