#[repr(i32)]pub enum ComposeAction {
None = 0,
Typing = 1,
UploadingPhoto = 2,
UploadingDocument = 3,
UploadingVideo = 4,
RecordingVoice = 5,
}Variants§
Implementations§
Source§impl ComposeAction
impl ComposeAction
Source§impl ComposeAction
impl ComposeAction
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<ComposeAction>
pub fn from_str_name(value: &str) -> Option<ComposeAction>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for ComposeAction
impl Clone for ComposeAction
Source§fn clone(&self) -> ComposeAction
fn clone(&self) -> ComposeAction
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 ComposeAction
Source§impl Debug for ComposeAction
impl Debug for ComposeAction
Source§impl Default for ComposeAction
impl Default for ComposeAction
Source§fn default() -> ComposeAction
fn default() -> ComposeAction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ComposeAction
impl<'de> Deserialize<'de> for ComposeAction
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ComposeAction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ComposeAction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ComposeAction
Source§impl Hash for ComposeAction
impl Hash for ComposeAction
Source§impl Ord for ComposeAction
impl Ord for ComposeAction
Source§fn cmp(&self, other: &ComposeAction) -> Ordering
fn cmp(&self, other: &ComposeAction) -> 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 ComposeAction
impl PartialEq for ComposeAction
Source§fn eq(&self, other: &ComposeAction) -> bool
fn eq(&self, other: &ComposeAction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ComposeAction
impl PartialOrd for ComposeAction
Source§impl Serialize for ComposeAction
impl Serialize for ComposeAction
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 ComposeAction
Source§impl TryFrom<i32> for ComposeAction
impl TryFrom<i32> for ComposeAction
Source§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ComposeAction, DecodeError>
fn try_from(value: i32) -> Result<ComposeAction, DecodeError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ComposeAction
impl RefUnwindSafe for ComposeAction
impl Send for ComposeAction
impl Sync for ComposeAction
impl Unpin for ComposeAction
impl UnsafeUnpin for ComposeAction
impl UnwindSafe for ComposeAction
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