Struct chesscom_openapi::models::profile::Profile[][src]

pub struct Profile {
    pub id: String,
    pub url: String,
    pub username: String,
    pub player_id: i32,
    pub title: Option<Title>,
    pub status: Status,
    pub name: Option<String>,
    pub avatar: Option<String>,
    pub location: Option<String>,
    pub country: String,
    pub joined: DateTime<Utc>,
    pub last_online: DateTime<Utc>,
    pub followers: i32,
    pub is_streamer: bool,
    pub twitch_url: Option<String>,
    pub fide: Option<i32>,
}

Fields

id: Stringurl: Stringusername: Stringplayer_id: i32title: Option<Title>status: Statusname: Option<String>avatar: Option<String>location: Option<String>country: Stringjoined: DateTime<Utc>last_online: DateTime<Utc>followers: i32is_streamer: booltwitch_url: Option<String>fide: Option<i32>

Implementations

impl Profile[src]

pub fn new(
    id: String,
    url: String,
    username: String,
    player_id: i32,
    status: Status,
    country: String,
    joined: DateTime<Utc>,
    last_online: DateTime<Utc>,
    followers: i32,
    is_streamer: bool
) -> Profile
[src]

Trait Implementations

impl Clone for Profile[src]

impl Debug for Profile[src]

impl<'de> Deserialize<'de> for Profile[src]

impl PartialEq<Profile> for Profile[src]

impl Serialize for Profile[src]

impl StructuralPartialEq for Profile[src]

Auto Trait Implementations

impl RefUnwindSafe for Profile

impl Send for Profile

impl Sync for Profile

impl Unpin for Profile

impl UnwindSafe for Profile

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.