pub struct User<'a> {
pub id: UserId,
pub display_name: Option<Cow<'a, str>>,
pub profile_pic_url: Option<Url>,
pub created: Option<DateTime<Utc>>,
}Expand description
A Tailscale user.
A User can have multiple Logins associated with it (e.g. gmail and github oauth),
although as of 2019, none of the UIs support this.
Some fields are inherited from the Logins and can be overridden, such as
User::display_name and User::profile_pic_url.
Fields§
§id: UserIdThe unique integer ID of this Tailscale user.
display_name: Option<Cow<'a, str>>If populated, the display name of this Tailscale user. Overrides the value in any IdP-
provided Login::display_name field.
profile_pic_url: Option<Url>If populated, a URL to a profile picture representing this Tailscale user. Overrides the
IdP-provided value in any Login::profile_pic_url field.
created: Option<DateTime<Utc>>The date and time that this Tailscale user was created, in the UTC timezone.
Trait Implementations§
Source§impl<'de: 'a, 'a> Deserialize<'de> for User<'a>
impl<'de: 'a, 'a> Deserialize<'de> for User<'a>
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<'a> Eq for User<'a>
impl<'a> StructuralPartialEq for User<'a>
Auto Trait Implementations§
impl<'a> Freeze for User<'a>
impl<'a> RefUnwindSafe for User<'a>
impl<'a> Send for User<'a>
impl<'a> Sync for User<'a>
impl<'a> Unpin for User<'a>
impl<'a> UnsafeUnpin for User<'a>
impl<'a> UnwindSafe for User<'a>
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