#[non_exhaustive]pub struct DashboardUser {
pub id: String,
pub name: String,
pub email: Option<String>,
pub role: String,
pub username: Option<String>,
pub account_id: Option<i64>,
pub user_id: Option<i64>,
pub volume_id: Option<i64>,
pub exp: Option<i64>,
}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: String§name: String§email: Option<String>§role: String§username: Option<String>§account_id: Option<i64>§user_id: Option<i64>§volume_id: Option<i64>§exp: Option<i64>Implementations§
Source§impl DashboardUser
impl DashboardUser
Sourcepub fn new(
id: impl Into<String>,
name: impl Into<String>,
role: impl Into<String>,
) -> Self
pub fn new( id: impl Into<String>, name: impl Into<String>, role: impl Into<String>, ) -> Self
Builds the value from its required fields. Optional fields start unset.
Sourcepub fn with_email(self, value: impl Into<String>) -> Self
pub fn with_email(self, value: impl Into<String>) -> Self
Sets email.
Sourcepub fn with_username(self, value: impl Into<String>) -> Self
pub fn with_username(self, value: impl Into<String>) -> Self
Sets username.
Sourcepub fn with_account_id(self, value: i64) -> Self
pub fn with_account_id(self, value: i64) -> Self
Sets account_id.
Sourcepub fn with_user_id(self, value: i64) -> Self
pub fn with_user_id(self, value: i64) -> Self
Sets user_id.
Sourcepub fn with_volume_id(self, value: i64) -> Self
pub fn with_volume_id(self, value: i64) -> Self
Sets volume_id.
Trait Implementations§
Source§impl Clone for DashboardUser
impl Clone for DashboardUser
Source§impl Debug for DashboardUser
impl Debug for DashboardUser
Source§impl Default for DashboardUser
impl Default for DashboardUser
Source§impl<'de> Deserialize<'de> for DashboardUser
impl<'de> Deserialize<'de> for DashboardUser
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 DashboardUser
impl RefUnwindSafe for DashboardUser
impl Send for DashboardUser
impl Sync for DashboardUser
impl Unpin for DashboardUser
impl UnsafeUnpin for DashboardUser
impl UnwindSafe for DashboardUser
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