pub struct CapabilityIdentity { /* private fields */ }Expand description
An owner-qualified, version-pinned capability identity.
CapabilityName is registry-local, so durable references use this pair
whenever a surrounding record does not already pin the owning registry.
The serialized owner is an auditable claim, not authentication or proof
that the capability is registered.
Implementations§
Source§impl CapabilityIdentity
impl CapabilityIdentity
Sourcepub const fn new(
owner: PrincipalIdentity,
capability: CapabilityReference,
) -> Self
pub const fn new( owner: PrincipalIdentity, capability: CapabilityReference, ) -> Self
Constructs an owner-qualified identity from validated components.
Sourcepub const fn owner(&self) -> &PrincipalIdentity
pub const fn owner(&self) -> &PrincipalIdentity
Returns the principal owning the registry namespace.
Sourcepub const fn capability(&self) -> &CapabilityReference
pub const fn capability(&self) -> &CapabilityReference
Returns the registry-local, version-pinned reference.
Sourcepub const fn name(&self) -> &CapabilityName
pub const fn name(&self) -> &CapabilityName
Returns the registry-local capability name.
Trait Implementations§
Source§impl Clone for CapabilityIdentity
impl Clone for CapabilityIdentity
Source§impl Debug for CapabilityIdentity
impl Debug for CapabilityIdentity
Source§impl<'de> Deserialize<'de> for CapabilityIdentity
impl<'de> Deserialize<'de> for CapabilityIdentity
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
impl Eq for CapabilityIdentity
Source§impl Hash for CapabilityIdentity
impl Hash for CapabilityIdentity
Source§impl JsonSchema for CapabilityIdentity
impl JsonSchema for CapabilityIdentity
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for CapabilityIdentity
impl Ord for CapabilityIdentity
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CapabilityIdentity
impl PartialEq for CapabilityIdentity
Source§impl PartialOrd for CapabilityIdentity
impl PartialOrd for CapabilityIdentity
Source§impl Serialize for CapabilityIdentity
impl Serialize for CapabilityIdentity
impl StructuralPartialEq for CapabilityIdentity
Auto Trait Implementations§
impl Forget for CapabilityIdentity
impl Freeze for CapabilityIdentity
impl Move for CapabilityIdentity
impl RefUnwindSafe for CapabilityIdentity
impl Send for CapabilityIdentity
impl Sync for CapabilityIdentity
impl Unpin for CapabilityIdentity
impl UnsafeUnpin for CapabilityIdentity
impl UnwindSafe for CapabilityIdentity
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