pub struct GenericAccount {
pub id: ID,
pub username: String,
pub created: u128,
pub parent_id: String,
pub is_bot: bool,
pub hubs_hashed: Vec<String>,
}Expand description
A version of an Account, uses a hashed version of the list of hubs the user is a member of, the is_bot variable indicates whether or not the account is dedicated to automation/chatbot.
Fields§
§id: ID§username: String§created: u128§parent_id: String§is_bot: bool§hubs_hashed: Vec<String>Trait Implementations§
Source§impl Clone for GenericAccount
impl Clone for GenericAccount
Source§fn clone(&self) -> GenericAccount
fn clone(&self) -> GenericAccount
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GenericAccount
impl Debug for GenericAccount
Source§impl<'de> Deserialize<'de> for GenericAccount
impl<'de> Deserialize<'de> for GenericAccount
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
Source§impl PartialEq for GenericAccount
impl PartialEq for GenericAccount
Source§impl Serialize for GenericAccount
impl Serialize for GenericAccount
impl StructuralPartialEq for GenericAccount
Auto Trait Implementations§
impl Freeze for GenericAccount
impl RefUnwindSafe for GenericAccount
impl Send for GenericAccount
impl Sync for GenericAccount
impl Unpin for GenericAccount
impl UnwindSafe for GenericAccount
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