pub struct UserInfo {Show 13 fields
pub id: String,
pub name: String,
pub api_key: String,
pub perm_superuser: bool,
pub perm_load_llm: bool,
pub perm_unload_llm: bool,
pub perm_download_llm: bool,
pub perm_session: bool,
pub perm_request_download: bool,
pub perm_request_load: bool,
pub perm_request_unload: bool,
pub perm_view_llms: bool,
pub perm_bare_model: bool,
}
Fields§
§id: String
§name: String
§api_key: String
§perm_superuser: bool
§perm_load_llm: bool
§perm_unload_llm: bool
§perm_download_llm: bool
§perm_session: bool
§perm_request_download: bool
§perm_request_load: bool
§perm_request_unload: bool
§perm_view_llms: bool
§perm_bare_model: bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UserInfo
impl<'de> Deserialize<'de> for UserInfo
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 UserInfo
impl RefUnwindSafe for UserInfo
impl Send for UserInfo
impl Sync for UserInfo
impl Unpin for UserInfo
impl UnwindSafe for UserInfo
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