#[non_exhaustive]#[repr(u32)]pub enum ObjectType {
Certificate = 1,
SymmetricKey = 2,
PublicKey = 3,
PrivateKey = 4,
SplitKey = 5,
Template = 6,
SecretData = 7,
OpaqueObject = 8,
PGPKey = 9,
}Expand description
See KMIP 1.0 section 3.3 Object Type.
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.
Certificate = 1
SymmetricKey = 2
PublicKey = 3
PrivateKey = 4
SplitKey = 5
Template = 6
SecretData = 7
OpaqueObject = 8
PGPKey = 9
Implementations§
Source§impl ObjectType
impl ObjectType
pub const TAG: Tag
pub fn fast_scan(scanner: &mut FastScanner<'_>) -> Result<Self, FastScanError>
pub fn fast_scan_with( scanner: &mut FastScanner<'_>, tag: Tag, ) -> Result<Self, FastScanError>
pub fn fast_scan_opt( scanner: &mut FastScanner<'_>, ) -> Result<Option<Self>, FastScanError>
pub fn fast_scan_opt_with( scanner: &mut FastScanner<'_>, tag: Tag, ) -> Result<Option<Self>, FastScanError>
pub fn format(&self, formatter: &mut Formatter<'_>) -> FormatResult
pub fn format_with( &self, formatter: &mut Formatter<'_>, tag: Tag, ) -> FormatResult
Trait Implementations§
Source§impl Clone for ObjectType
impl Clone for ObjectType
impl Copy for ObjectType
Source§impl Debug for ObjectType
impl Debug for ObjectType
Source§impl Display for ObjectType
impl Display for ObjectType
impl Eq for ObjectType
Source§impl Ordinalize for ObjectType
impl Ordinalize for ObjectType
Source§const VARIANT_COUNT: usize = 9usize
const VARIANT_COUNT: usize = 9usize
The count of variants.
Source§type VariantType = u32
type VariantType = u32
The type of the values of the variants.
Source§unsafe fn from_ordinal_unsafe(number: u32) -> Self
unsafe fn from_ordinal_unsafe(number: u32) -> Self
Obtain a variant based on an integer number. Read more
Source§fn from_ordinal(number: u32) -> Option<Self>
fn from_ordinal(number: u32) -> Option<Self>
Obtain a variant based on an integer number.
Source§impl PartialEq for ObjectType
impl PartialEq for ObjectType
impl StructuralPartialEq for ObjectType
Auto Trait Implementations§
impl Forget for ObjectType
impl Freeze for ObjectType
impl RefUnwindSafe for ObjectType
impl Send for ObjectType
impl Sync for ObjectType
impl Unpin for ObjectType
impl UnsafeUnpin for ObjectType
impl UnwindSafe for ObjectType
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