pub struct CredentialIssuer {
pub origin: Origin,
pub method: MethodPath,
}Expand description
Identity of the issuing party: the Origin the credential was issued from and the method that issued it. Drives the named-session auto-naming algorithm (AUTHZ-CRED-S01-output §5) and ties the credential to its lineage in audit.
Fields§
§origin: OriginBackend Origin that issued this credential.
method: MethodPathMethod whose return type carries this credential field.
Implementations§
Source§impl CredentialIssuer
impl CredentialIssuer
Sourcepub fn new(origin: Origin, method: MethodPath) -> Self
pub fn new(origin: Origin, method: MethodPath) -> Self
Construct a CredentialIssuer value. Public — the issuer is not a
secret; activation code may construct one to pass into mint (the
Credential<T> itself remains sealed).
Trait Implementations§
Source§impl Clone for CredentialIssuer
impl Clone for CredentialIssuer
Source§fn clone(&self) -> CredentialIssuer
fn clone(&self) -> CredentialIssuer
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 CredentialIssuer
impl Debug for CredentialIssuer
Source§impl<'de> Deserialize<'de> for CredentialIssuer
impl<'de> Deserialize<'de> for CredentialIssuer
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 Hash for CredentialIssuer
impl Hash for CredentialIssuer
Source§impl JsonSchema for CredentialIssuer
impl JsonSchema for CredentialIssuer
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CredentialIssuer
impl PartialEq for CredentialIssuer
Source§fn eq(&self, other: &CredentialIssuer) -> bool
fn eq(&self, other: &CredentialIssuer) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CredentialIssuer
impl Serialize for CredentialIssuer
impl Eq for CredentialIssuer
impl StructuralPartialEq for CredentialIssuer
Auto Trait Implementations§
impl Freeze for CredentialIssuer
impl RefUnwindSafe for CredentialIssuer
impl Send for CredentialIssuer
impl Sync for CredentialIssuer
impl Unpin for CredentialIssuer
impl UnsafeUnpin for CredentialIssuer
impl UnwindSafe for CredentialIssuer
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