#[non_exhaustive]pub struct OperationKey { /* private fields */ }Expand description
Capability plus wire-format kind.
Implementations§
Source§impl OperationKey
impl OperationKey
pub fn content_generation( operation: Operation, kind: ContentGenerationKind, ) -> Self
pub fn provider(operation: Operation, provider: Provider) -> Self
pub const fn group(self) -> OperationGroup
Sourcepub const fn operation(self) -> Operation
pub const fn operation(self) -> Operation
Return the capability operation protected by this key’s invariant.
Sourcepub const fn kind(self) -> OperationKind
pub const fn kind(self) -> OperationKind
Return the provider wire-format kind protected by this key’s invariant.
pub const fn provider_family(self) -> Provider
pub const fn is_consistent(self) -> bool
pub const fn try_new( operation: Operation, kind: OperationKind, ) -> Result<Self, OperationKeyError>
Trait Implementations§
Source§impl Clone for OperationKey
impl Clone for OperationKey
Source§fn clone(&self) -> OperationKey
fn clone(&self) -> OperationKey
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 OperationKey
Source§impl Debug for OperationKey
impl Debug for OperationKey
Source§impl<'de> Deserialize<'de> for OperationKey
impl<'de> Deserialize<'de> for OperationKey
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 OperationKey
Source§impl Hash for OperationKey
impl Hash for OperationKey
Source§impl PartialEq for OperationKey
impl PartialEq for OperationKey
Source§impl Serialize for OperationKey
impl Serialize for OperationKey
impl StructuralPartialEq for OperationKey
Auto Trait Implementations§
impl Freeze for OperationKey
impl RefUnwindSafe for OperationKey
impl Send for OperationKey
impl Sync for OperationKey
impl Unpin for OperationKey
impl UnsafeUnpin for OperationKey
impl UnwindSafe for OperationKey
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