pub struct CredentialResult {
pub session: Option<SessionRecord>,
pub owner_authorization: Option<OwnerAuthorizationBundle>,
pub mint_root_attachment: Option<SignedOwnerMintRootAttachment>,
pub method: i32,
pub oauth_provider: i32,
pub outcome: Option<Outcome>,
}Expand description
Returned only by a successful credential ceremony, never by an observation. Keyed clients retain their own minting authority. Registration attaches their proved key to an account/session; it does not mint a bearer or confer an independent human root on an agent. Other keyless ceremonies can return an issued bearer. Password completion MUST return client_owned, never issued.
Fields§
§session: Option<SessionRecord>Original accepted owner proofs where established. An unclaimed agent has no independent human-root bundle; absence does not upgrade its authority.
mint_root_attachment: Option<SignedOwnerMintRootAttachment>Exact retained public association for this credential’s original mint root. A paired leaf inherits it; no owner signature or authority is reminted.
method: i32Verified original human authentication, not inferred from credential kind. Provisioned agent capabilities have no human authentication method.
oauth_provider: i32§outcome: Option<Outcome>Implementations§
Source§impl CredentialResult
impl CredentialResult
Sourcepub fn method(&self) -> CredentialMethod
pub fn method(&self) -> CredentialMethod
Returns the enum value of method, or the default if the field is set to an invalid enum value.
Sourcepub fn set_method(&mut self, value: CredentialMethod)
pub fn set_method(&mut self, value: CredentialMethod)
Sets method to the provided enum value.
Sourcepub fn oauth_provider(&self) -> OAuthProvider
pub fn oauth_provider(&self) -> OAuthProvider
Returns the enum value of oauth_provider, or the default if the field is set to an invalid enum value.
Sourcepub fn set_oauth_provider(&mut self, value: OAuthProvider)
pub fn set_oauth_provider(&mut self, value: OAuthProvider)
Sets oauth_provider to the provided enum value.
Trait Implementations§
Source§impl Clone for CredentialResult
impl Clone for CredentialResult
Source§fn clone(&self) -> CredentialResult
fn clone(&self) -> CredentialResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CredentialResult
impl Debug for CredentialResult
Source§impl Default for CredentialResult
impl Default for CredentialResult
Source§fn default() -> CredentialResult
fn default() -> CredentialResult
Source§impl Message for CredentialResult
impl Message for CredentialResult
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for CredentialResult
impl PartialEq for CredentialResult
impl StructuralPartialEq for CredentialResult
Auto Trait Implementations§
impl Freeze for CredentialResult
impl RefUnwindSafe for CredentialResult
impl Send for CredentialResult
impl Sync for CredentialResult
impl Unpin for CredentialResult
impl UnsafeUnpin for CredentialResult
impl UnwindSafe for CredentialResult
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more