#[non_exhaustive]pub struct CreateImportJobRequest {
pub parent: String,
pub import_job_id: String,
pub import_job: Option<ImportJob>,
/* private fields */
}Expand description
Request message for KeyManagementService.CreateImportJob.
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 name of the KeyRing associated with the ImportJobs.
import_job_id: StringRequired. It must be unique within a KeyRing and match the regular
expression [a-zA-Z0-9_-]{1,63}
import_job: Option<ImportJob>Required. An ImportJob with initial field values.
Implementations§
Source§impl CreateImportJobRequest
impl CreateImportJobRequest
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_import_job_id<T: Into<String>>(self, v: T) -> Self
pub fn set_import_job_id<T: Into<String>>(self, v: T) -> Self
Sets the value of import_job_id.
Sourcepub fn set_import_job<T>(self, v: T) -> Self
pub fn set_import_job<T>(self, v: T) -> Self
Sets the value of import_job.
Sourcepub fn set_or_clear_import_job<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_import_job<T>(self, v: Option<T>) -> Self
Sets or clears the value of import_job.
Trait Implementations§
Source§impl Clone for CreateImportJobRequest
impl Clone for CreateImportJobRequest
Source§fn clone(&self) -> CreateImportJobRequest
fn clone(&self) -> CreateImportJobRequest
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 CreateImportJobRequest
impl Debug for CreateImportJobRequest
Source§impl Default for CreateImportJobRequest
impl Default for CreateImportJobRequest
Source§fn default() -> CreateImportJobRequest
fn default() -> CreateImportJobRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateImportJobRequest
impl Message for CreateImportJobRequest
Source§impl PartialEq for CreateImportJobRequest
impl PartialEq for CreateImportJobRequest
impl StructuralPartialEq for CreateImportJobRequest
Auto Trait Implementations§
impl !Freeze for CreateImportJobRequest
impl RefUnwindSafe for CreateImportJobRequest
impl Send for CreateImportJobRequest
impl Sync for CreateImportJobRequest
impl Unpin for CreateImportJobRequest
impl UnwindSafe for CreateImportJobRequest
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