pub enum EnrollmentKeySet {
V1(HiveKeySetV1),
V3(HiveKeySetV3),
}Expand description
The key set of an enrollment: v1 for an engine below Hive-Protocol 2.1,
v3 from 2.1 (told apart by schema). Either way the lease kid names a
key of this set, and the engine verifies the set as it verifies that
version everywhere else.
Variants§
V1(HiveKeySetV1)
V3(HiveKeySetV3)
Implementations§
Source§impl EnrollmentKeySet
impl EnrollmentKeySet
pub fn validate(&self) -> Result<(), ValidationError>
Sourcepub fn signs_leases_as(&self, kid: &str) -> bool
pub fn signs_leases_as(&self, kid: &str) -> bool
Whether the set lists a key that may sign a lease named kid.
Trait Implementations§
Source§impl Clone for EnrollmentKeySet
impl Clone for EnrollmentKeySet
Source§impl Debug for EnrollmentKeySet
impl Debug for EnrollmentKeySet
Source§impl<'de> Deserialize<'de> for EnrollmentKeySet
impl<'de> Deserialize<'de> for EnrollmentKeySet
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EnrollmentKeySet
Source§impl PartialEq for EnrollmentKeySet
impl PartialEq for EnrollmentKeySet
Source§impl Serialize for EnrollmentKeySet
impl Serialize for EnrollmentKeySet
impl StructuralPartialEq for EnrollmentKeySet
Auto Trait Implementations§
impl Freeze for EnrollmentKeySet
impl RefUnwindSafe for EnrollmentKeySet
impl Send for EnrollmentKeySet
impl Sync for EnrollmentKeySet
impl Unpin for EnrollmentKeySet
impl UnsafeUnpin for EnrollmentKeySet
impl UnwindSafe for EnrollmentKeySet
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