Enum rtdlib::types::OptionValue
source[−]pub enum OptionValue {
GetOption(GetOption),
Boolean(OptionValueBoolean),
Empty(OptionValueEmpty),
Integer(OptionValueInteger),
String(OptionValueString),
// some variants omitted
}
Expand description
Represents the value of an option
Variants
GetOption(GetOption)
Tuple Fields
0: GetOption
Returns the value of an option by its name. (Check the list of available options on https://core.telegram.org/tdlib/options.) Can be called before authorization
Boolean(OptionValueBoolean)
Tuple Fields
Represents a boolean option
Empty(OptionValueEmpty)
Tuple Fields
Represents an unknown option or an option which has a default value
Integer(OptionValueInteger)
Tuple Fields
Represents an integer option
String(OptionValueString)
Tuple Fields
Represents a string option
Implementations
Trait Implementations
Performs the conversion.
fn deserialize<D>(deserializer: D) -> Result<OptionValue, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<OptionValue, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for OptionValue
impl Send for OptionValue
impl Sync for OptionValue
impl Unpin for OptionValue
impl UnwindSafe for OptionValue
Blanket Implementations
Mutably borrows from an owned value. Read more