#[non_exhaustive]pub struct UserInvite {
pub id: Option<String>,
pub role: Option<String>,
pub tailnet_id: Option<i64>,
pub inviter_id: Option<i64>,
pub email: Option<String>,
pub last_email_sent_at: Option<String>,
pub invite_url: Option<String>,
pub unknown: Unknown,
}Expand description
An invitation for someone outside the tailnet to join it.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: Option<String>§role: Option<String>The role the invitee gets on accepting. One of INVITE_ROLES.
tailnet_id: Option<i64>§inviter_id: Option<i64>§email: Option<String>Empty for an invite nobody was mailed, whose URL is shared by hand.
last_email_sent_at: Option<String>§invite_url: Option<String>Anyone holding this link can accept, not only the addressee.
unknown: UnknownEverything the description did not mention, kept so that a control plane ahead of this build still answers usefully.
Implementations§
Trait Implementations§
Source§impl Clone for UserInvite
impl Clone for UserInvite
Source§impl Debug for UserInvite
impl Debug for UserInvite
Source§impl Default for UserInvite
impl Default for UserInvite
Source§impl<'de> Deserialize<'de> for UserInvite
impl<'de> Deserialize<'de> for UserInvite
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 PartialEq for UserInvite
impl PartialEq for UserInvite
Source§impl Serialize for UserInvite
impl Serialize for UserInvite
impl StructuralPartialEq for UserInvite
Auto Trait Implementations§
impl Freeze for UserInvite
impl RefUnwindSafe for UserInvite
impl Send for UserInvite
impl Sync for UserInvite
impl Unpin for UserInvite
impl UnsafeUnpin for UserInvite
impl UnwindSafe for UserInvite
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