#[non_exhaustive]pub struct Folder {
pub name: String,
pub parent: 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,
}Expand description
A folder in an organization’s resource hierarchy, used to organize that organization’s resources.
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 folder.
Its format is folders/{folder_id}, for example: “folders/1234”.
parent: StringRequired. The folder’s parent’s resource name. Updates to the folder’s parent must be performed using MoveFolder.
display_name: StringThe folder’s display name.
A folder’s display name must be unique amongst its siblings. For example,
no two folders with the same parent can share the same display name.
The display name must start and end with a letter or digit, may contain
letters, digits, spaces, hyphens and underscores and can be no longer
than 30 characters. This is captured by the regular expression:
[\p{L}\p{N}]([\p{L}\p{N}_- ]{0,28}[\p{L}\p{N}])?.
state: StateOutput only. The lifecycle state of the folder. Updates to the state must be performed using DeleteFolder and UndeleteFolder.
create_time: Option<Timestamp>Output only. Timestamp when the folder was created.
update_time: Option<Timestamp>Output only. Timestamp when the folder was last modified.
delete_time: Option<Timestamp>Output only. Timestamp when the folder was requested to be deleted.
etag: StringOutput only. A checksum computed by the server based on the current value of the folder resource. This may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
Implementations§
Source§impl Folder
impl Folder
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
Sourcepub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_create_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_update_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_delete_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
pub fn set_delete_time<T: Into<Option<Timestamp>>>(self, v: T) -> Self
Sets the value of delete_time.