#[non_exhaustive]pub struct CreateMetadataJobRequest {
pub parent: String,
pub metadata_job: Option<MetadataJob>,
pub metadata_job_id: String,
pub validate_only: bool,
/* private fields */
}Expand description
Create metadata job request.
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.parent: StringRequired. The resource name of the parent location, in the format
projects/{project_id_or_number}/locations/{location_id}
metadata_job: Option<MetadataJob>Required. The metadata job resource.
metadata_job_id: StringOptional. The metadata job ID. If not provided, a unique ID is generated
with the prefix metadata-job-.
validate_only: boolOptional. The service validates the request without performing any mutations. The default is false.
Implementations§
Source§impl CreateMetadataJobRequest
impl CreateMetadataJobRequest
pub fn new() -> Self
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_metadata_job<T>(self, v: T) -> Selfwhere
T: Into<MetadataJob>,
pub fn set_metadata_job<T>(self, v: T) -> Selfwhere
T: Into<MetadataJob>,
Sets the value of metadata_job.
Sourcepub fn set_or_clear_metadata_job<T>(self, v: Option<T>) -> Selfwhere
T: Into<MetadataJob>,
pub fn set_or_clear_metadata_job<T>(self, v: Option<T>) -> Selfwhere
T: Into<MetadataJob>,
Sets or clears the value of metadata_job.
Sourcepub fn set_metadata_job_id<T: Into<String>>(self, v: T) -> Self
pub fn set_metadata_job_id<T: Into<String>>(self, v: T) -> Self
Sets the value of metadata_job_id.
Sourcepub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
pub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
Sets the value of validate_only.
Trait Implementations§
Source§impl Clone for CreateMetadataJobRequest
impl Clone for CreateMetadataJobRequest
Source§fn clone(&self) -> CreateMetadataJobRequest
fn clone(&self) -> CreateMetadataJobRequest
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 CreateMetadataJobRequest
impl Debug for CreateMetadataJobRequest
Source§impl Default for CreateMetadataJobRequest
impl Default for CreateMetadataJobRequest
Source§fn default() -> CreateMetadataJobRequest
fn default() -> CreateMetadataJobRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateMetadataJobRequest
impl Message for CreateMetadataJobRequest
Source§impl PartialEq for CreateMetadataJobRequest
impl PartialEq for CreateMetadataJobRequest
impl StructuralPartialEq for CreateMetadataJobRequest
Auto Trait Implementations§
impl Freeze for CreateMetadataJobRequest
impl RefUnwindSafe for CreateMetadataJobRequest
impl Send for CreateMetadataJobRequest
impl Sync for CreateMetadataJobRequest
impl Unpin for CreateMetadataJobRequest
impl UnwindSafe for CreateMetadataJobRequest
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