pub struct EnrolledPayload {
pub service_id: Uuid,
pub enrollment_secret: SecretString,
pub status: EnrollmentStatus,
}Expand description
Payload for enrollment confirmation.
Sent once by the controller in response to enroll. enrollment_secret must be
persisted by the service: it is presented as an Authorization: Bearer header to
reconnect and resume the enrollment session (e.g. after a restart) if the service
has not yet obtained a client certificate. status reflects whether the service
requires manual admin approval or was auto-approved.
Fields§
§service_id: Uuid§enrollment_secret: SecretString§status: EnrollmentStatusTrait Implementations§
Source§impl Clone for EnrolledPayload
impl Clone for EnrolledPayload
Source§fn clone(&self) -> EnrolledPayload
fn clone(&self) -> EnrolledPayload
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 moreSource§impl Debug for EnrolledPayload
impl Debug for EnrolledPayload
Source§impl<'de> Deserialize<'de> for EnrolledPayload
impl<'de> Deserialize<'de> for EnrolledPayload
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 EnrolledPayload
Source§impl PartialEq for EnrolledPayload
impl PartialEq for EnrolledPayload
Source§impl Serialize for EnrolledPayload
impl Serialize for EnrolledPayload
impl StructuralPartialEq for EnrolledPayload
Auto Trait Implementations§
impl Freeze for EnrolledPayload
impl RefUnwindSafe for EnrolledPayload
impl Send for EnrolledPayload
impl Sync for EnrolledPayload
impl Unpin for EnrolledPayload
impl UnsafeUnpin for EnrolledPayload
impl UnwindSafe for EnrolledPayload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.