pub struct WorkloadIdentity {
pub scheme: WorkloadIdentityScheme,
pub credential_kind: WorkloadCredentialKind,
pub uri: String,
pub trust_domain: String,
pub path: String,
}Expand description
Normalized workload identity derived from runtime attestation evidence.
Fields§
§scheme: WorkloadIdentitySchemeIdentity scheme Chio recognized from the upstream evidence.
credential_kind: WorkloadCredentialKindCredential family that authenticated the workload.
uri: StringCanonical workload identifier URI.
trust_domain: StringStable trust domain resolved from the identifier.
path: StringCanonical workload path within the trust domain.
Implementations§
Source§impl WorkloadIdentity
impl WorkloadIdentity
pub fn parse_spiffe_uri( uri: &str, ) -> Result<WorkloadIdentity, WorkloadIdentityError>
pub fn parse_spiffe_uri_with_kind( uri: &str, credential_kind: WorkloadCredentialKind, ) -> Result<WorkloadIdentity, WorkloadIdentityError>
pub fn validate(&self) -> Result<(), WorkloadIdentityError>
Trait Implementations§
Source§impl Clone for WorkloadIdentity
impl Clone for WorkloadIdentity
Source§fn clone(&self) -> WorkloadIdentity
fn clone(&self) -> WorkloadIdentity
Returns a duplicate of the value. Read more
1.0.0 · 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 WorkloadIdentity
impl Debug for WorkloadIdentity
Source§impl<'de> Deserialize<'de> for WorkloadIdentity
impl<'de> Deserialize<'de> for WorkloadIdentity
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WorkloadIdentity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WorkloadIdentity, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WorkloadIdentity
impl PartialEq for WorkloadIdentity
Source§impl Serialize for WorkloadIdentity
impl Serialize for WorkloadIdentity
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for WorkloadIdentity
impl StructuralPartialEq for WorkloadIdentity
Auto Trait Implementations§
impl Freeze for WorkloadIdentity
impl RefUnwindSafe for WorkloadIdentity
impl Send for WorkloadIdentity
impl Sync for WorkloadIdentity
impl Unpin for WorkloadIdentity
impl UnsafeUnpin for WorkloadIdentity
impl UnwindSafe for WorkloadIdentity
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