#[non_exhaustive]pub struct SearchMessageResult {
pub message: Option<Message>,
pub read: Option<bool>,
pub space_mute_setting: MuteSetting,
/* private fields */
}Expand description
A single result item from a message search.
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.message: Option<Message>The matched message.
read: Option<bool>Indicates if the matched message is read by the calling user.
Only returned if the request view is SEARCH_MESSAGES_VIEW_FULL and the
calling credentials include one of the following authorization
scopes:
<https://www.googleapis.com/auth/chat.users.readstate.readonly><https://www.googleapis.com/auth/chat.users.readstate>
space_mute_setting: MuteSettingThe mute setting of the calling user for the space where the message is posted. The caller app can use this information to decide how to process the message depending on whether the space is muted for the user or not.
Only returned if the request view is SEARCH_MESSAGES_VIEW_FULL and the
calling credentials include the following authorization
scope:
<https://www.googleapis.com/auth/chat.users.spacesettings>
Implementations§
Source§impl SearchMessageResult
impl SearchMessageResult
Sourcepub fn set_message<T>(self, v: T) -> Self
pub fn set_message<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_message<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_message<T>(self, v: Option<T>) -> Self
Sourcepub fn set_or_clear_read<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_read<T>(self, v: Option<T>) -> Self
Sourcepub fn set_space_mute_setting<T: Into<MuteSetting>>(self, v: T) -> Self
pub fn set_space_mute_setting<T: Into<MuteSetting>>(self, v: T) -> Self
Sets the value of space_mute_setting.
§Example
ⓘ
use google_chat_v1::model::space_notification_setting::MuteSetting;
let x0 = SearchMessageResult::new().set_space_mute_setting(MuteSetting::Unmuted);
let x1 = SearchMessageResult::new().set_space_mute_setting(MuteSetting::Muted);Trait Implementations§
Source§impl Clone for SearchMessageResult
impl Clone for SearchMessageResult
Source§fn clone(&self) -> SearchMessageResult
fn clone(&self) -> SearchMessageResult
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 SearchMessageResult
impl Debug for SearchMessageResult
Source§impl Default for SearchMessageResult
impl Default for SearchMessageResult
Source§fn default() -> SearchMessageResult
fn default() -> SearchMessageResult
Returns the “default value” for a type. Read more
Source§impl Message for SearchMessageResult
impl Message for SearchMessageResult
Source§impl PartialEq for SearchMessageResult
impl PartialEq for SearchMessageResult
impl StructuralPartialEq for SearchMessageResult
Auto Trait Implementations§
impl Freeze for SearchMessageResult
impl RefUnwindSafe for SearchMessageResult
impl Send for SearchMessageResult
impl Sync for SearchMessageResult
impl Unpin for SearchMessageResult
impl UnsafeUnpin for SearchMessageResult
impl UnwindSafe for SearchMessageResult
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