pub struct BotVerificationParameters {
pub icon_custom_emoji_id: i64,
pub organization_name: String,
pub default_custom_description: Option<FormattedText>,
pub can_set_custom_description: bool,
}Expand description
Describes parameters of verification that is provided by a bot
Fields§
§icon_custom_emoji_id: i64Identifier of the custom emoji that is used as the verification sign
organization_name: StringName of the organization that provides verification
default_custom_description: Option<FormattedText>Default custom description of verification reason to be used as placeholder in setMessageSenderBotVerification; may be null if none
can_set_custom_description: boolTrue, if the bot is allowed to provide custom description for verified entities
Trait Implementations§
Source§impl Clone for BotVerificationParameters
impl Clone for BotVerificationParameters
Source§fn clone(&self) -> BotVerificationParameters
fn clone(&self) -> BotVerificationParameters
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 BotVerificationParameters
impl Debug for BotVerificationParameters
Source§impl Default for BotVerificationParameters
impl Default for BotVerificationParameters
Source§fn default() -> BotVerificationParameters
fn default() -> BotVerificationParameters
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BotVerificationParameters
impl<'de> Deserialize<'de> for BotVerificationParameters
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 BotVerificationParameters
Auto Trait Implementations§
impl Freeze for BotVerificationParameters
impl RefUnwindSafe for BotVerificationParameters
impl Send for BotVerificationParameters
impl Sync for BotVerificationParameters
impl Unpin for BotVerificationParameters
impl UnsafeUnpin for BotVerificationParameters
impl UnwindSafe for BotVerificationParameters
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