pub struct Usernames {
pub active_usernames: Vec<String>,
pub disabled_usernames: Vec<String>,
pub editable_username: String,
}
Expand description
Describes usernames assigned to a user, a supergroup, or a channel
Fields§
§active_usernames: Vec<String>
List of active usernames; the first one must be shown as the primary username. The order of active usernames can be changed with reorderActiveUsernames, reorderBotActiveUsernames or reorderSupergroupActiveUsernames
disabled_usernames: Vec<String>
List of currently disabled usernames; the username can be activated with toggleUsernameIsActive, toggleBotUsernameIsActive, or toggleSupergroupUsernameIsActive
editable_username: String
The active username, which can be changed with setUsername or setSupergroupUsername. Information about other active usernames can be received using getCollectibleItemInfo
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Usernames
impl<'de> Deserialize<'de> for Usernames
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
impl StructuralPartialEq for Usernames
Auto Trait Implementations§
impl Freeze for Usernames
impl RefUnwindSafe for Usernames
impl Send for Usernames
impl Sync for Usernames
impl Unpin for Usernames
impl UnwindSafe for Usernames
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