#[non_exhaustive]pub struct SearchSpacesResponse {
pub spaces: Vec<Space>,
pub next_page_token: String,
pub total_size: i32,
pub results: Vec<SearchSpaceResult>,
/* private fields */
}Expand description
Response with a list of spaces corresponding to the search spaces request.
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.spaces: Vec<Space>👎Deprecated
Deprecated: Please use the new results field instead.
A page of the requested spaces. This field will be populated only when
useAdminAccess is set to true and deprecated in favor of the new
results field.
next_page_token: StringA token that can be used to retrieve the next page. If this field is empty, there are no subsequent pages.
total_size: i32The total number of spaces that match the query, across all pages. If the result is over 10,000 spaces, this value is an estimate.
results: Vec<SearchSpaceResult>Output only. The list of search results that matched the query.
Implementations§
Source§impl SearchSpacesResponse
impl SearchSpacesResponse
Sourcepub fn set_spaces<T, V>(self, v: T) -> Self
👎Deprecated
pub fn set_spaces<T, V>(self, v: T) -> Self
Sourcepub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of next_page_token.
§Example
ⓘ
let x = SearchSpacesResponse::new().set_next_page_token("example");Sourcepub fn set_total_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_total_size<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_results<T, V>(self, v: T) -> Self
pub fn set_results<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for SearchSpacesResponse
impl Clone for SearchSpacesResponse
Source§fn clone(&self) -> SearchSpacesResponse
fn clone(&self) -> SearchSpacesResponse
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 SearchSpacesResponse
impl Debug for SearchSpacesResponse
Source§impl Default for SearchSpacesResponse
impl Default for SearchSpacesResponse
Source§fn default() -> SearchSpacesResponse
fn default() -> SearchSpacesResponse
Returns the “default value” for a type. Read more
Source§impl Message for SearchSpacesResponse
impl Message for SearchSpacesResponse
Source§impl PartialEq for SearchSpacesResponse
impl PartialEq for SearchSpacesResponse
impl StructuralPartialEq for SearchSpacesResponse
Auto Trait Implementations§
impl Freeze for SearchSpacesResponse
impl RefUnwindSafe for SearchSpacesResponse
impl Send for SearchSpacesResponse
impl Sync for SearchSpacesResponse
impl Unpin for SearchSpacesResponse
impl UnsafeUnpin for SearchSpacesResponse
impl UnwindSafe for SearchSpacesResponse
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