#[repr(i32)]pub enum MessageReplyOption {
Unspecified = 0,
ReplyMessageFallbackToNewThread = 1,
ReplyMessageOrFail = 2,
}
Expand description
Specifies how to reply to a message. More states might be added in the future.
Variants§
Unspecified = 0
Default. Starts a new thread. Using this option ignores any [thread
ID][google.chat.v1.Thread.name] or
[thread_key
][google.chat.v1.Thread.thread_key] that’s included.
ReplyMessageFallbackToNewThread = 1
Creates the message as a reply to the thread specified by [thread
ID][google.chat.v1.Thread.name] or
[thread_key
][google.chat.v1.Thread.thread_key]. If it fails, the
message starts a new thread instead.
ReplyMessageOrFail = 2
Creates the message as a reply to the thread specified by [thread
ID][google.chat.v1.Thread.name] or
[thread_key
][google.chat.v1.Thread.thread_key]. If a new thread_key
is used, a new thread is created. If the message creation fails, a
NOT_FOUND
error is returned instead.
Implementations§
Source§impl MessageReplyOption
impl MessageReplyOption
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<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for MessageReplyOption
impl Clone for MessageReplyOption
Source§fn clone(&self) -> MessageReplyOption
fn clone(&self) -> MessageReplyOption
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MessageReplyOption
impl Debug for MessageReplyOption
Source§impl Default for MessageReplyOption
impl Default for MessageReplyOption
Source§fn default() -> MessageReplyOption
fn default() -> MessageReplyOption
Source§impl From<MessageReplyOption> for i32
impl From<MessageReplyOption> for i32
Source§fn from(value: MessageReplyOption) -> i32
fn from(value: MessageReplyOption) -> i32
Source§impl Hash for MessageReplyOption
impl Hash for MessageReplyOption
Source§impl Ord for MessageReplyOption
impl Ord for MessageReplyOption
Source§fn cmp(&self, other: &MessageReplyOption) -> Ordering
fn cmp(&self, other: &MessageReplyOption) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for MessageReplyOption
impl PartialEq for MessageReplyOption
Source§impl PartialOrd for MessageReplyOption
impl PartialOrd for MessageReplyOption
Source§impl TryFrom<i32> for MessageReplyOption
impl TryFrom<i32> for MessageReplyOption
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<MessageReplyOption, UnknownEnumValue>
fn try_from(value: i32) -> Result<MessageReplyOption, UnknownEnumValue>
impl Copy for MessageReplyOption
impl Eq for MessageReplyOption
impl StructuralPartialEq for MessageReplyOption
Auto Trait Implementations§
impl Freeze for MessageReplyOption
impl RefUnwindSafe for MessageReplyOption
impl Send for MessageReplyOption
impl Sync for MessageReplyOption
impl Unpin for MessageReplyOption
impl UnwindSafe for MessageReplyOption
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request