#[repr(i32)]pub enum DialogFollowMode {
Unspecified = 0,
Following = 1,
}Variants§
Implementations§
Source§impl DialogFollowMode
impl DialogFollowMode
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<DialogFollowMode>
pub fn from_str_name(value: &str) -> Option<DialogFollowMode>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for DialogFollowMode
impl Clone for DialogFollowMode
Source§fn clone(&self) -> DialogFollowMode
fn clone(&self) -> DialogFollowMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DialogFollowMode
Source§impl Debug for DialogFollowMode
impl Debug for DialogFollowMode
Source§impl Default for DialogFollowMode
impl Default for DialogFollowMode
Source§fn default() -> DialogFollowMode
fn default() -> DialogFollowMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DialogFollowMode
impl<'de> Deserialize<'de> for DialogFollowMode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DialogFollowMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DialogFollowMode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DialogFollowMode
Source§impl Hash for DialogFollowMode
impl Hash for DialogFollowMode
Source§impl Ord for DialogFollowMode
impl Ord for DialogFollowMode
Source§fn cmp(&self, other: &DialogFollowMode) -> Ordering
fn cmp(&self, other: &DialogFollowMode) -> Ordering
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
Source§impl PartialEq for DialogFollowMode
impl PartialEq for DialogFollowMode
Source§fn eq(&self, other: &DialogFollowMode) -> bool
fn eq(&self, other: &DialogFollowMode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DialogFollowMode
impl PartialOrd for DialogFollowMode
Source§impl Serialize for DialogFollowMode
impl Serialize for DialogFollowMode
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DialogFollowMode
Source§impl TryFrom<i32> for DialogFollowMode
impl TryFrom<i32> for DialogFollowMode
Source§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<DialogFollowMode, DecodeError>
fn try_from(value: i32) -> Result<DialogFollowMode, DecodeError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for DialogFollowMode
impl RefUnwindSafe for DialogFollowMode
impl Send for DialogFollowMode
impl Sync for DialogFollowMode
impl Unpin for DialogFollowMode
impl UnsafeUnpin for DialogFollowMode
impl UnwindSafe for DialogFollowMode
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