#[non_exhaustive]pub enum DialogTimeout {
Seconds60,
Minutes5,
Minutes10,
Never,
Other(String),
}Expand description
askUserQuestionTimeout and dialogExpiry.
Docs: askUserQuestionTimeout.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Seconds60
60 seconds.
Minutes5
5 minutes.
Minutes10
10 minutes.
Never
No deadline.
Other(String)
A value this crate doesn’t know, as written.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for DialogTimeout
impl AsRef<str> for DialogTimeout
Source§impl Clone for DialogTimeout
impl Clone for DialogTimeout
Source§impl Debug for DialogTimeout
impl Debug for DialogTimeout
Source§impl<'de> Deserialize<'de> for DialogTimeout
impl<'de> Deserialize<'de> for DialogTimeout
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DialogTimeout
impl Display for DialogTimeout
impl Eq for DialogTimeout
Source§impl From<&str> for DialogTimeout
impl From<&str> for DialogTimeout
Source§impl From<String> for DialogTimeout
impl From<String> for DialogTimeout
Source§impl Hash for DialogTimeout
impl Hash for DialogTimeout
Source§impl Ord for DialogTimeout
impl Ord for DialogTimeout
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for DialogTimeout
impl PartialEq for DialogTimeout
Source§impl PartialOrd for DialogTimeout
impl PartialOrd for DialogTimeout
Source§impl Serialize for DialogTimeout
impl Serialize for DialogTimeout
impl StructuralPartialEq for DialogTimeout
Auto Trait Implementations§
impl Forget for DialogTimeout
impl Freeze for DialogTimeout
impl Move for DialogTimeout
impl RefUnwindSafe for DialogTimeout
impl Send for DialogTimeout
impl Sync for DialogTimeout
impl Unpin for DialogTimeout
impl UnsafeUnpin for DialogTimeout
impl UnwindSafe for DialogTimeout
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