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
.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
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