pub enum HostManagedKind {
Secret,
QuotaToken,
PermissionCard,
}Expand description
A closed set of “host-managed” capability kinds.
Variants§
Implementations§
Source§impl HostManagedKind
impl HostManagedKind
Sourcepub fn from_type(ty: &SchemaType) -> Option<HostManagedKind>
pub fn from_type(ty: &SchemaType) -> Option<HostManagedKind>
Classifies a SchemaType node, returning Some for capability types.
Sourcepub fn from_value(value: &SchemaValue) -> Option<HostManagedKind>
pub fn from_value(value: &SchemaValue) -> Option<HostManagedKind>
Classifies a SchemaValue node, returning Some for capability
values.
Sourcepub fn redacted_placeholder(self) -> &'static str
pub fn redacted_placeholder(self) -> &'static str
Placeholder rendered in place of the value on redacting surfaces, in the
form <redacted: kind>.
Trait Implementations§
Source§impl Clone for HostManagedKind
impl Clone for HostManagedKind
Source§fn clone(&self) -> HostManagedKind
fn clone(&self) -> HostManagedKind
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 moreimpl Copy for HostManagedKind
Source§impl Debug for HostManagedKind
impl Debug for HostManagedKind
impl Eq for HostManagedKind
Source§impl Hash for HostManagedKind
impl Hash for HostManagedKind
Source§impl PartialEq for HostManagedKind
impl PartialEq for HostManagedKind
impl StructuralPartialEq for HostManagedKind
Auto Trait Implementations§
impl Freeze for HostManagedKind
impl RefUnwindSafe for HostManagedKind
impl Send for HostManagedKind
impl Sync for HostManagedKind
impl Unpin for HostManagedKind
impl UnsafeUnpin for HostManagedKind
impl UnwindSafe for HostManagedKind
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