#[non_exhaustive]pub enum ManagedObject {
SymmetricKey(SymmetricKey),
PublicKey(PublicKey),
PrivateKey(PrivateKey),
Template(Template),
}Expand description
See KMIP 1.0 section 2.2 Managed Objects.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl ManagedObject
impl ManagedObject
pub fn fast_scan( scanner: &mut FastScanner<'_>, type: ObjectType, ) -> Result<Self, FastScanError>
pub fn fast_scan_opt( scanner: &mut FastScanner<'_>, type: ObjectType, ) -> Result<Option<Self>, FastScanError>
pub fn format(&self, formatter: &mut Formatter<'_>) -> FormatResult
Trait Implementations§
Source§impl Clone for ManagedObject
impl Clone for ManagedObject
Source§impl Debug for ManagedObject
impl Debug for ManagedObject
impl Eq for ManagedObject
Source§impl PartialEq for ManagedObject
impl PartialEq for ManagedObject
impl StructuralPartialEq for ManagedObject
Auto Trait Implementations§
impl Forget for ManagedObject
impl Freeze for ManagedObject
impl RefUnwindSafe for ManagedObject
impl Send for ManagedObject
impl Sync for ManagedObject
impl Unpin for ManagedObject
impl UnsafeUnpin for ManagedObject
impl UnwindSafe for ManagedObject
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