pub struct SetOption {
pub name: String,
pub value: OptionValue,
}
Expand description
Sets the value of an option. (Check the list of available options on https://core.telegram.org/tdlib/options.) Only writable options can be set. Can be called before authorization
Fields§
§name: String
The name of the option
value: OptionValue
The new value of the option
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SetOption
impl<'de> Deserialize<'de> for SetOption
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 SetOption
impl RefUnwindSafe for SetOption
impl Send for SetOption
impl Sync for SetOption
impl Unpin for SetOption
impl UnwindSafe for SetOption
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