pub struct InviteResponse {
pub token: String,
pub hostname: String,
pub expires_at: String,
pub ca_fingerprint: String,
}Expand description
Response carrying a freshly minted invite token (returned exactly once).
Fields§
§token: StringThe one-time invite code — deliver to the joining host out of band.
The code is <secret>.<ca_fingerprint> (ADR-017 F3): the joiner pins the
embedded fingerprint and preflights the CA before sending its CSR, and the
CA consumes only the secret half. The plaintext secret exists only here.
hostname: StringHostname this invite is bound to.
expires_at: StringRFC 3339 absolute expiry.
ca_fingerprint: StringThe CA fingerprint embedded in the invite code (also carried separately for JSON consumers). The joiner pins this and aborts the join if the CA it reaches advertises a different fingerprint (ADR-017 F3).
Trait Implementations§
Source§impl ComposeSchema for InviteResponse
impl ComposeSchema for InviteResponse
Source§impl Debug for InviteResponse
impl Debug for InviteResponse
Source§impl<'de> Deserialize<'de> for InviteResponse
impl<'de> Deserialize<'de> for InviteResponse
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
Source§impl Serialize for InviteResponse
impl Serialize for InviteResponse
Auto Trait Implementations§
impl Freeze for InviteResponse
impl RefUnwindSafe for InviteResponse
impl Send for InviteResponse
impl Sync for InviteResponse
impl Unpin for InviteResponse
impl UnsafeUnpin for InviteResponse
impl UnwindSafe for InviteResponse
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more