#[non_exhaustive]pub struct Organization {
pub name: String,
pub display_name: String,
pub state: State,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub delete_time: Option<Timestamp>,
pub etag: String,
pub owner: Option<Owner>,
/* private fields */
}Expand description
The root node in the resource hierarchy to which a particular entity’s (a company, for example) resources belong.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringOutput only. The resource name of the organization. This is the organization’s relative path in the API. Its format is “organizations/[organization_id]”. For example, “organizations/1234”.
display_name: StringOutput only. A human-readable string that refers to the organization in the Google Cloud Console. This string is set by the server and cannot be changed. The string will be set to the primary domain (for example, “google.com”) of the Google Workspace customer that owns the organization.
state: StateOutput only. The organization’s current lifecycle state.
create_time: Option<Timestamp>Output only. Timestamp when the Organization was created.
update_time: Option<Timestamp>Output only. Timestamp when the Organization was last modified.
delete_time: Option<Timestamp>Output only. Timestamp when the Organization was requested for deletion.
etag: StringOutput only. A checksum computed by the server based on the current value of the Organization resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
owner: Option<Owner>The owner of this organization. The owner should be specified on creation. Once set, it cannot be changed.
The lifetime of the organization and all of its descendants are bound to the owner. If the owner is deleted, the organization and all its descendants will be deleted.
Implementations§
Source§impl Organization
impl Organization
pub fn new() -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
use wkt::Timestamp;
let x = Organization::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
use wkt::Timestamp;
let x = Organization::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = Organization::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
§Example
use wkt::Timestamp;
let x = Organization::new().set_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
§Example
use wkt::Timestamp;
let x = Organization::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = Organization::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_delete_time<T>(self, v: T) -> Self
pub fn set_delete_time<T>(self, v: T) -> Self
Sets the value of delete_time.
§Example
use wkt::Timestamp;
let x = Organization::new().set_delete_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_delete_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_delete_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of delete_time.
§Example
use wkt::Timestamp;
let x = Organization::new().set_or_clear_delete_time(Some(Timestamp::default()/* use setters */));
let x = Organization::new().set_or_clear_delete_time(None::<Timestamp>);Sourcepub fn directory_customer_id(&self) -> Option<&String>
pub fn directory_customer_id(&self) -> Option<&String>
The value of owner
if it holds a DirectoryCustomerId, None if the field is not set or
holds a different branch.
Sourcepub fn set_directory_customer_id<T: Into<String>>(self, v: T) -> Self
pub fn set_directory_customer_id<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for Organization
impl Clone for Organization
Source§fn clone(&self) -> Organization
fn clone(&self) -> Organization
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more