Enum rtdlib::types::OptionValue [−][src]
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
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
Tuple Fields of GetOption
0: GetOption
Represents a boolean option
Tuple Fields of Boolean
Represents an unknown option or an option which has a default value
Tuple Fields of Empty
Represents an integer option
Tuple Fields of Integer
Represents a string option
Tuple Fields of String
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