Struct wascap::jwt::CapabilityProvider
source · pub struct CapabilityProvider {
pub name: Option<String>,
pub vendor: String,
pub rev: Option<i32>,
pub ver: Option<String>,
pub target_hashes: HashMap<String, String>,
pub config_schema: Option<Value>,
}
Expand description
The claims metadata corresponding to a capability provider
Fields§
§name: Option<String>
A descriptive name for the capability provider
vendor: String
A human-readable string identifying the vendor of this provider (e.g. Redis or Cassandra or NATS etc)
rev: Option<i32>
Indicates a monotonically increasing revision number. Optional.
ver: Option<String>
Indicates a human-friendly version string. Optional.
target_hashes: HashMap<String, String>
The file hashes that correspond to the achitecture-OS target triples for this provider.
config_schema: Option<Value>
If the provider chooses, it can supply a JSON schma that describes its expected link configuration
Implementations§
Trait Implementations§
source§impl Clone for CapabilityProvider
impl Clone for CapabilityProvider
source§fn clone(&self) -> CapabilityProvider
fn clone(&self) -> CapabilityProvider
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 CapabilityProvider
impl Debug for CapabilityProvider
source§impl Default for CapabilityProvider
impl Default for CapabilityProvider
source§fn default() -> CapabilityProvider
fn default() -> CapabilityProvider
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CapabilityProvider
impl<'de> Deserialize<'de> for CapabilityProvider
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 PartialEq for CapabilityProvider
impl PartialEq for CapabilityProvider
source§impl Serialize for CapabilityProvider
impl Serialize for CapabilityProvider
source§impl WascapEntity for CapabilityProvider
impl WascapEntity for CapabilityProvider
impl StructuralPartialEq for CapabilityProvider
Auto Trait Implementations§
impl Freeze for CapabilityProvider
impl RefUnwindSafe for CapabilityProvider
impl Send for CapabilityProvider
impl Sync for CapabilityProvider
impl Unpin for CapabilityProvider
impl UnwindSafe for CapabilityProvider
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
)