#[non_exhaustive]pub struct GetMessageRequest {
pub name: String,
pub markup_syntax: MarkupSyntax,
/* private fields */
}Expand description
Request to get a message.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringRequired. Resource name of the message.
Format: spaces/{space}/messages/{message}
If you’ve set a custom ID for your message, you can use the value from the
clientAssignedMessageId field for {message}. For details, see [Name a
message]
(https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
markup_syntax: MarkupSyntaxOptional. Specifies the desired output syntax for the Chat message
formatted_text field.
Implementations§
Source§impl GetMessageRequest
impl GetMessageRequest
Sourcepub fn set_markup_syntax<T: Into<MarkupSyntax>>(self, v: T) -> Self
pub fn set_markup_syntax<T: Into<MarkupSyntax>>(self, v: T) -> Self
Sets the value of markup_syntax.
§Example
ⓘ
use google_chat_v1::model::MarkupSyntax;
let x0 = GetMessageRequest::new().set_markup_syntax(MarkupSyntax::Chat);
let x1 = GetMessageRequest::new().set_markup_syntax(MarkupSyntax::Markdown);Trait Implementations§
Source§impl Clone for GetMessageRequest
impl Clone for GetMessageRequest
Source§fn clone(&self) -> GetMessageRequest
fn clone(&self) -> GetMessageRequest
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 moreSource§impl Debug for GetMessageRequest
impl Debug for GetMessageRequest
Source§impl Default for GetMessageRequest
impl Default for GetMessageRequest
Source§fn default() -> GetMessageRequest
fn default() -> GetMessageRequest
Returns the “default value” for a type. Read more
Source§impl Message for GetMessageRequest
impl Message for GetMessageRequest
Source§impl PartialEq for GetMessageRequest
impl PartialEq for GetMessageRequest
impl StructuralPartialEq for GetMessageRequest
Auto Trait Implementations§
impl Freeze for GetMessageRequest
impl RefUnwindSafe for GetMessageRequest
impl Send for GetMessageRequest
impl Sync for GetMessageRequest
impl Unpin for GetMessageRequest
impl UnsafeUnpin for GetMessageRequest
impl UnwindSafe for GetMessageRequest
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