pub enum EnrollmentCredential {
BootstrapToken {
token_id: [u8; 16],
allowed_node_id: [u8; 32],
assigned_ipv4: u32,
assigned_ipv6: [u8; 16],
allowed_flags: u32,
not_after_unix: u64,
admin_signature: [u8; 64],
},
RenewalCert {
existing_cert_bytes: Vec<u8>,
renewal_signature: [u8; 64],
},
}Expand description
Authorization proof presented by an enrolling or renewing node.
Variants§
BootstrapToken
One-time administrator provisioning token signed by the enrollment auth key.
Fields
RenewalCert
Existing valid certificate presented for zero-touch rotation prior to expiry.
Trait Implementations§
Source§impl Clone for EnrollmentCredential
impl Clone for EnrollmentCredential
Source§impl Debug for EnrollmentCredential
impl Debug for EnrollmentCredential
Source§impl<'de> Deserialize<'de> for EnrollmentCredential
impl<'de> Deserialize<'de> for EnrollmentCredential
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 EnrollmentCredential
Source§impl PartialEq for EnrollmentCredential
impl PartialEq for EnrollmentCredential
Source§impl Serialize for EnrollmentCredential
impl Serialize for EnrollmentCredential
impl StructuralPartialEq for EnrollmentCredential
Auto Trait Implementations§
impl Freeze for EnrollmentCredential
impl RefUnwindSafe for EnrollmentCredential
impl Send for EnrollmentCredential
impl Sync for EnrollmentCredential
impl Unpin for EnrollmentCredential
impl UnsafeUnpin for EnrollmentCredential
impl UnwindSafe for EnrollmentCredential
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