pub struct User {Show 20 fields
pub id: u32,
pub username: String,
pub email: String,
pub plugin_auth: Option<String>,
pub theme: String,
pub email_verified: Option<bool>,
pub nsfw_policy: String,
pub web_torrent_enabled: bool,
pub auto_play_video: bool,
pub role: RoleId,
pub role_label: String,
pub video_quota: i64,
pub video_quota_daily: i64,
pub no_instance_config_warning_modal: bool,
pub no_welcome_modal: bool,
pub blocked: bool,
pub blocked_reason: Option<String>,
pub created_at: DateTime<Utc>,
pub account: Account,
pub video_channels: Vec<ChannelSummary>,
}Fields§
§id: u32§username: String§email: String§plugin_auth: Option<String>§theme: String§email_verified: Option<bool>§nsfw_policy: String§web_torrent_enabled: bool§auto_play_video: bool§role: RoleId§role_label: String§video_quota: i64§video_quota_daily: i64§no_instance_config_warning_modal: bool§no_welcome_modal: bool§blocked: bool§blocked_reason: Option<String>§created_at: DateTime<Utc>§account: Account§video_channels: Vec<ChannelSummary>Trait Implementations§
Source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
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
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnsafeUnpin for User
impl UnwindSafe for User
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