Struct wasmcloud_host::policy::PolicyClaims
source · pub struct PolicyClaims {
pub public_key: String,
pub issuer: String,
pub issued_at: String,
pub expires_at: Option<u64>,
pub expired: bool,
}
Expand description
Claims associated with a policy request, if embedded inside the component or provider
Fields§
§public_key: String
The public key of the component
issuer: String
The issuer key of the component
issued_at: String
The time the claims were signed
expires_at: Option<u64>
The time the claims expire, if any
expired: bool
Whether the claims have expired already. This is included in case the policy server is fulfilled by an component, which cannot access the system clock
Trait Implementations§
source§impl Clone for PolicyClaims
impl Clone for PolicyClaims
source§fn clone(&self) -> PolicyClaims
fn clone(&self) -> PolicyClaims
Returns a copy 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 PolicyClaims
impl Debug for PolicyClaims
source§impl Default for PolicyClaims
impl Default for PolicyClaims
source§fn default() -> PolicyClaims
fn default() -> PolicyClaims
Returns the “default value” for a type. Read more
source§impl From<&Claims<CapabilityProvider>> for PolicyClaims
impl From<&Claims<CapabilityProvider>> for PolicyClaims
source§fn from(claims: &Claims<CapabilityProvider>) -> Self
fn from(claims: &Claims<CapabilityProvider>) -> Self
Converts to this type from the input type.
source§impl Hash for PolicyClaims
impl Hash for PolicyClaims
source§impl PartialEq for PolicyClaims
impl PartialEq for PolicyClaims
source§impl Serialize for PolicyClaims
impl Serialize for PolicyClaims
impl Eq for PolicyClaims
impl StructuralPartialEq for PolicyClaims
Auto Trait Implementations§
impl Freeze for PolicyClaims
impl RefUnwindSafe for PolicyClaims
impl Send for PolicyClaims
impl Sync for PolicyClaims
impl Unpin for PolicyClaims
impl UnwindSafe for PolicyClaims
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self
file descriptor.source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self
file descriptor. Read moresource§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>
Converts
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>
Converts
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 moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request