#[non_exhaustive]pub struct SearchOrganizationsResponse {
pub organizations: Vec<Organization>,
pub next_page_token: String,
/* private fields */
}Expand description
The response returned from the SearchOrganizations method.
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.organizations: Vec<Organization>The list of Organizations that matched the search query, possibly paginated.
next_page_token: StringA pagination token to be used to retrieve the next page of results. If the result is too large to fit within the page size specified in the request, this field will be set with a token that can be used to fetch the next page of results. If this field is empty, it indicates that this response contains the last page of results.
Implementations§
Source§impl SearchOrganizationsResponse
impl SearchOrganizationsResponse
pub fn new() -> Self
Sourcepub fn set_organizations<T, V>(self, v: T) -> Self
pub fn set_organizations<T, V>(self, v: T) -> Self
Sets the value of organizations.
§Example
ⓘ
use google_cloud_resourcemanager_v3::model::Organization;
let x = SearchOrganizationsResponse::new()
.set_organizations([
Organization::default()/* use setters */,
Organization::default()/* use (different) setters */,
]);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 = SearchOrganizationsResponse::new().set_next_page_token("example");Trait Implementations§
Source§impl Clone for SearchOrganizationsResponse
impl Clone for SearchOrganizationsResponse
Source§fn clone(&self) -> SearchOrganizationsResponse
fn clone(&self) -> SearchOrganizationsResponse
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 SearchOrganizationsResponse
impl Debug for SearchOrganizationsResponse
Source§impl Default for SearchOrganizationsResponse
impl Default for SearchOrganizationsResponse
Source§fn default() -> SearchOrganizationsResponse
fn default() -> SearchOrganizationsResponse
Returns the “default value” for a type. Read more
impl StructuralPartialEq for SearchOrganizationsResponse
Auto Trait Implementations§
impl Freeze for SearchOrganizationsResponse
impl RefUnwindSafe for SearchOrganizationsResponse
impl Send for SearchOrganizationsResponse
impl Sync for SearchOrganizationsResponse
impl Unpin for SearchOrganizationsResponse
impl UnwindSafe for SearchOrganizationsResponse
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