#[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§fn eq(&self, other: &MessageReplyOption) -> bool
fn eq(&self, other: &MessageReplyOption) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MessageReplyOption
impl PartialOrd for MessageReplyOption
source§fn partial_cmp(&self, other: &MessageReplyOption) -> Option<Ordering>
fn partial_cmp(&self, other: &MessageReplyOption) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for MessageReplyOption
impl TryFrom<i32> for MessageReplyOption
§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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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