Struct google_api_proto::google::chat::v1::UpdateSpaceReadStateRequest
source · pub struct UpdateSpaceReadStateRequest {
pub space_read_state: Option<SpaceReadState>,
pub update_mask: Option<FieldMask>,
}
Expand description
Request message for UpdateSpaceReadState API.
Fields§
§space_read_state: Option<SpaceReadState>
Required. The space read state and fields to update.
Only supports updating read state for the calling user.
To refer to the calling user, set one of the following:
-
The
me
alias. For example,users/me/spaces/{space}/spaceReadState
. -
Their Workspace email address. For example,
users/user@example.com/spaces/{space}/spaceReadState
. -
Their user id. For example,
users/123456789/spaces/{space}/spaceReadState
.
Format: users/{user}/spaces/{space}/spaceReadState
update_mask: Option<FieldMask>
Required. The field paths to update. Currently supported field paths:
last_read_time
When the last_read_time
is before the latest message create time, the
space appears as unread in the UI.
To mark the space as read, set last_read_time
to any value later (larger)
than the latest message create time. The last_read_time
is coerced to
match the latest message create time. Note that the space read state only
affects the read state of messages that are visible in the space’s
top-level conversation. Replies in threads are unaffected by this
timestamp, and instead rely on the thread read state.
Trait Implementations§
source§impl Clone for UpdateSpaceReadStateRequest
impl Clone for UpdateSpaceReadStateRequest
source§fn clone(&self) -> UpdateSpaceReadStateRequest
fn clone(&self) -> UpdateSpaceReadStateRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateSpaceReadStateRequest
impl Debug for UpdateSpaceReadStateRequest
source§impl Message for UpdateSpaceReadStateRequest
impl Message for UpdateSpaceReadStateRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for UpdateSpaceReadStateRequest
impl PartialEq for UpdateSpaceReadStateRequest
source§fn eq(&self, other: &UpdateSpaceReadStateRequest) -> bool
fn eq(&self, other: &UpdateSpaceReadStateRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateSpaceReadStateRequest
Auto Trait Implementations§
impl Freeze for UpdateSpaceReadStateRequest
impl RefUnwindSafe for UpdateSpaceReadStateRequest
impl Send for UpdateSpaceReadStateRequest
impl Sync for UpdateSpaceReadStateRequest
impl Unpin for UpdateSpaceReadStateRequest
impl UnwindSafe for UpdateSpaceReadStateRequest
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<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