Struct google_api_proto::google::chat::v1::ListSpacesRequest
source · pub struct ListSpacesRequest {
pub page_size: i32,
pub page_token: String,
pub filter: String,
}
Expand description
A request to list the spaces the caller is a member of.
Fields§
§page_size: i32
Optional. The maximum number of spaces to return. The service might return fewer than this value.
If unspecified, at most 100 spaces are returned.
The maximum value is 1000. If you use a value more than 1000, it’s automatically changed to 1000.
Negative values return an INVALID_ARGUMENT
error.
page_token: String
Optional. A page token, received from a previous list spaces call. Provide this parameter to retrieve the subsequent page.
When paginating, the filter value should match the call that provided the page token. Passing a different value may lead to unexpected results.
filter: String
Optional. A query filter.
You can filter spaces by the space type
(space_type
).
To filter by space type, you must specify valid enum value, such as
SPACE
or GROUP_CHAT
(the space_type
can’t be
SPACE_TYPE_UNSPECIFIED
). To query for multiple space types, use the OR
operator.
For example, the following queries are valid:
space_type = "SPACE"
spaceType = "GROUP_CHAT" OR spaceType = "DIRECT_MESSAGE"
Invalid queries are rejected by the server with an INVALID_ARGUMENT
error.
Trait Implementations§
source§impl Clone for ListSpacesRequest
impl Clone for ListSpacesRequest
source§fn clone(&self) -> ListSpacesRequest
fn clone(&self) -> ListSpacesRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListSpacesRequest
impl Debug for ListSpacesRequest
source§impl Default for ListSpacesRequest
impl Default for ListSpacesRequest
source§impl Message for ListSpacesRequest
impl Message for ListSpacesRequest
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 ListSpacesRequest
impl PartialEq for ListSpacesRequest
source§fn eq(&self, other: &ListSpacesRequest) -> bool
fn eq(&self, other: &ListSpacesRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ListSpacesRequest
Auto Trait Implementations§
impl Freeze for ListSpacesRequest
impl RefUnwindSafe for ListSpacesRequest
impl Send for ListSpacesRequest
impl Sync for ListSpacesRequest
impl Unpin for ListSpacesRequest
impl UnwindSafe for ListSpacesRequest
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