pub struct AccountUser {
pub id: String,
pub display_name: String,
pub email: String,
pub region: String,
pub plan: String,
pub model_keys: BTreeMap<String, AccountModelKeyState>,
}Expand description
Cached account identity and non-secret presentation fields.
Fields§
§id: StringStable Codewhale account identifier.
display_name: StringUser-facing account name.
email: StringAccount email returned by the service. Runtime metadata never exposes it.
region: StringAccount residency region returned by the service.
plan: StringAccount plan returned by the service.
model_keys: BTreeMap<String, AccountModelKeyState>Provider-key presence metadata; values never contain provider credentials.
Trait Implementations§
Source§impl Clone for AccountUser
impl Clone for AccountUser
Source§fn clone(&self) -> AccountUser
fn clone(&self) -> AccountUser
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for AccountUser
impl Default for AccountUser
Source§fn default() -> AccountUser
fn default() -> AccountUser
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AccountUser
impl<'de> Deserialize<'de> for AccountUser
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 AccountUser
impl RefUnwindSafe for AccountUser
impl Send for AccountUser
impl Sync for AccountUser
impl Unpin for AccountUser
impl UnsafeUnpin for AccountUser
impl UnwindSafe for AccountUser
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