#[non_exhaustive]pub struct Folder {
pub name: String,
pub display_name: String,
pub containing_folder: String,
pub team_folder_name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub internal_metadata: Option<String>,
pub creator_iam_principal: Option<String>,
/* private fields */
}Expand description
Represents a Dataform Folder. This is a resource that is used to organize Files and other Folders and provide hierarchical access controls.
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: StringIdentifier. The Folder’s name.
display_name: StringRequired. The Folder’s user-friendly name.
containing_folder: StringOptional. The containing Folder resource name. This should take the format: projects/{project}/locations/{location}/folders/{folder}, projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just “” if this is a root Folder. This field can only be updated through MoveFolder.
team_folder_name: StringOutput only. The resource name of the TeamFolder that this Folder is associated with. This should take the format: projects/{project}/locations/{location}/teamFolders/{teamFolder}. If this is not set, the Folder is not associated with a TeamFolder and is a UserFolder.
create_time: Option<Timestamp>Output only. The timestamp of when the Folder was created.
update_time: Option<Timestamp>Output only. The timestamp of when the Folder was last updated.
internal_metadata: Option<String>Output only. All the metadata information that is used internally to serve the resource. For example: timestamps, flags, status fields, etc. The format of this field is a JSON string.
creator_iam_principal: Option<String>Output only. The IAM principal identifier of the creator of the Folder.
Implementations§
Source§impl Folder
impl Folder
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_containing_folder<T: Into<String>>(self, v: T) -> Self
pub fn set_containing_folder<T: Into<String>>(self, v: T) -> Self
Sets the value of containing_folder.
§Example
let x = Folder::new().set_containing_folder("example");Sourcepub fn set_team_folder_name<T: Into<String>>(self, v: T) -> Self
pub fn set_team_folder_name<T: Into<String>>(self, v: T) -> Self
Sets the value of team_folder_name.
§Example
let x = Folder::new().set_team_folder_name("example");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 = Folder::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 = Folder::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = Folder::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 = Folder::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 = Folder::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = Folder::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_internal_metadata<T>(self, v: T) -> Self
pub fn set_internal_metadata<T>(self, v: T) -> Self
Sets the value of internal_metadata.
§Example
let x = Folder::new().set_internal_metadata("example");Sourcepub fn set_or_clear_internal_metadata<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_internal_metadata<T>(self, v: Option<T>) -> Self
Sets or clears the value of internal_metadata.
§Example
let x = Folder::new().set_or_clear_internal_metadata(Some("example"));
let x = Folder::new().set_or_clear_internal_metadata(None::<String>);Sourcepub fn set_creator_iam_principal<T>(self, v: T) -> Self
pub fn set_creator_iam_principal<T>(self, v: T) -> Self
Sets the value of creator_iam_principal.
§Example
let x = Folder::new().set_creator_iam_principal("example");Sourcepub fn set_or_clear_creator_iam_principal<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_creator_iam_principal<T>(self, v: Option<T>) -> Self
Sets or clears the value of creator_iam_principal.
§Example
let x = Folder::new().set_or_clear_creator_iam_principal(Some("example"));
let x = Folder::new().set_or_clear_creator_iam_principal(None::<String>);Trait Implementations§
impl StructuralPartialEq for Folder
Auto Trait Implementations§
impl Freeze for Folder
impl RefUnwindSafe for Folder
impl Send for Folder
impl Sync for Folder
impl Unpin for Folder
impl UnsafeUnpin for Folder
impl UnwindSafe for Folder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request