pub struct InvitationResolution {
pub status: i32,
pub spool: Option<SpoolAddress>,
pub spool_name: String,
pub role: i32,
pub expires_at: Option<Timestamp>,
pub inviter: Option<PublicOwner>,
pub inviter_via_agent_label: String,
}Fields§
§status: i32§spool: Option<SpoolAddress>Filled only for AVAILABLE and REDEEMED after the redemption-secret check; path_segments is subject to the same gating as the other spool details. Every UNAVAILABLE response MUST be byte-identical, with no spool details, inviter or agent label, regardless of whether the secret is wrong, expired or revoked.
spool_name: String§role: i32§expires_at: Option<Timestamp>§inviter: Option<PublicOwner>Accountable human who created the invitation. Filled only for AVAILABLE and REDEEMED, after the redemption-secret check. Resolve at read time: show the current public handle even if this account is no longer a spool member or administrator. Use only already-public values, never a username fallback. Leave inviter and inviter_via_agent_label empty if the creator has no public handle or its account is deleted, locked or disabled. Clients MUST display inviter.handle. They MAY show display_name only alongside the handle, never by itself.
inviter_via_agent_label: StringAlready-public current display label of the delegated agent credential used to create this invitation, if any. Only set alongside an inviter with a public handle, after the redemption-secret check for AVAILABLE or REDEEMED. Clients MAY render it only as “via
Implementations§
Source§impl InvitationResolution
impl InvitationResolution
Sourcepub fn status(&self) -> Status
pub fn status(&self) -> Status
Returns the enum value of status, or the default if the field is set to an invalid enum value.
Sourcepub fn set_status(&mut self, value: Status)
pub fn set_status(&mut self, value: Status)
Sets status to the provided enum value.
Sourcepub fn role(&self) -> ResourceRole
pub fn role(&self) -> ResourceRole
Returns the enum value of role, or the default if the field is set to an invalid enum value.
Sourcepub fn set_role(&mut self, value: ResourceRole)
pub fn set_role(&mut self, value: ResourceRole)
Sets role to the provided enum value.
Trait Implementations§
Source§impl Clone for InvitationResolution
impl Clone for InvitationResolution
Source§fn clone(&self) -> InvitationResolution
fn clone(&self) -> InvitationResolution
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InvitationResolution
impl Debug for InvitationResolution
Source§impl Default for InvitationResolution
impl Default for InvitationResolution
Source§fn default() -> InvitationResolution
fn default() -> InvitationResolution
impl Eq for InvitationResolution
Source§impl Hash for InvitationResolution
impl Hash for InvitationResolution
Source§impl Message for InvitationResolution
impl Message for InvitationResolution
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for InvitationResolution
impl PartialEq for InvitationResolution
impl StructuralPartialEq for InvitationResolution
Auto Trait Implementations§
impl Freeze for InvitationResolution
impl RefUnwindSafe for InvitationResolution
impl Send for InvitationResolution
impl Sync for InvitationResolution
impl Unpin for InvitationResolution
impl UnsafeUnpin for InvitationResolution
impl UnwindSafe for InvitationResolution
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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§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
key and return true if they are equal.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> ⓘ
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> ⓘ
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