#[non_exhaustive]pub struct SearchOrganizationsRequest {
pub page_size: i32,
pub page_token: String,
pub query: String,
/* private fields */
}Expand description
The request sent to 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.page_size: i32Optional. The maximum number of organizations to return in the response. The server can return fewer organizations than requested. If unspecified, server picks an appropriate default.
page_token: StringOptional. A pagination token returned from a previous call to
SearchOrganizations that indicates from where listing should continue.
query: StringOptional. An optional query string used to filter the Organizations to return in the response. Query rules are case-insensitive.
| Field | Description |
|------------------|--------------------------------------------|
| directoryCustomerId, owner.directoryCustomerId | Filters by directory
customer id. |
| domain | Filters by domain. |Organizations may be queried by directoryCustomerId or by
domain, where the domain is a G Suite domain, for example:
- Query
directorycustomerid:123456789returns Organization resources withowner.directory_customer_idequal to123456789. - Query
domain:google.comreturns Organization resources corresponding to the domaingoogle.com.
Implementations§
Source§impl SearchOrganizationsRequest
impl SearchOrganizationsRequest
pub fn new() -> Self
Sourcepub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of page_token.
§Example
ⓘ
let x = SearchOrganizationsRequest::new().set_page_token("example");Trait Implementations§
Source§impl Clone for SearchOrganizationsRequest
impl Clone for SearchOrganizationsRequest
Source§fn clone(&self) -> SearchOrganizationsRequest
fn clone(&self) -> SearchOrganizationsRequest
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 SearchOrganizationsRequest
impl Debug for SearchOrganizationsRequest
Source§impl Default for SearchOrganizationsRequest
impl Default for SearchOrganizationsRequest
Source§fn default() -> SearchOrganizationsRequest
fn default() -> SearchOrganizationsRequest
Returns the “default value” for a type. Read more
Source§impl Message for SearchOrganizationsRequest
impl Message for SearchOrganizationsRequest
impl StructuralPartialEq for SearchOrganizationsRequest
Auto Trait Implementations§
impl Freeze for SearchOrganizationsRequest
impl RefUnwindSafe for SearchOrganizationsRequest
impl Send for SearchOrganizationsRequest
impl Sync for SearchOrganizationsRequest
impl Unpin for SearchOrganizationsRequest
impl UnwindSafe for SearchOrganizationsRequest
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