#[non_exhaustive]pub struct ListWorkspacesResponse {
pub workspaces: Vec<Workspace>,
pub next_page_token: String,
pub unreachable: Vec<String>,
/* private fields */
}Expand description
ListWorkspaces response message.
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.workspaces: Vec<Workspace>List of workspaces.
next_page_token: StringA token, which can be sent as page_token to retrieve the next page.
If this field is omitted, there are no subsequent pages.
unreachable: Vec<String>Locations which could not be reached.
Implementations§
Source§impl ListWorkspacesResponse
impl ListWorkspacesResponse
pub fn new() -> Self
Sourcepub fn set_workspaces<T, V>(self, v: T) -> Self
pub fn set_workspaces<T, V>(self, v: T) -> Self
Sets the value of workspaces.
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.
Sourcepub fn set_unreachable<T, V>(self, v: T) -> Self
pub fn set_unreachable<T, V>(self, v: T) -> Self
Sets the value of unreachable.
Trait Implementations§
Source§impl Clone for ListWorkspacesResponse
impl Clone for ListWorkspacesResponse
Source§fn clone(&self) -> ListWorkspacesResponse
fn clone(&self) -> ListWorkspacesResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 ListWorkspacesResponse
impl Debug for ListWorkspacesResponse
Source§impl Default for ListWorkspacesResponse
impl Default for ListWorkspacesResponse
Source§fn default() -> ListWorkspacesResponse
fn default() -> ListWorkspacesResponse
Returns the “default value” for a type. Read more
Source§impl Message for ListWorkspacesResponse
impl Message for ListWorkspacesResponse
Source§impl PartialEq for ListWorkspacesResponse
impl PartialEq for ListWorkspacesResponse
impl StructuralPartialEq for ListWorkspacesResponse
Auto Trait Implementations§
impl Freeze for ListWorkspacesResponse
impl RefUnwindSafe for ListWorkspacesResponse
impl Send for ListWorkspacesResponse
impl Sync for ListWorkspacesResponse
impl Unpin for ListWorkspacesResponse
impl UnwindSafe for ListWorkspacesResponse
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