#[non_exhaustive]pub struct CreateNasJobRequest {
pub parent: String,
pub nas_job: Option<NasJob>,
/* private fields */
}Available on crate feature
job-service only.Expand description
Request message for JobService.CreateNasJob.
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 Location to create the NasJob in.
Format: projects/{project}/locations/{location}
nas_job: Option<NasJob>Required. The NasJob to create.
Implementations§
Source§impl CreateNasJobRequest
impl CreateNasJobRequest
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
Sourcepub fn set_nas_job<T>(self, v: T) -> Self
pub fn set_nas_job<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_nas_job<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_nas_job<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for CreateNasJobRequest
impl Clone for CreateNasJobRequest
Source§fn clone(&self) -> CreateNasJobRequest
fn clone(&self) -> CreateNasJobRequest
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 CreateNasJobRequest
impl Debug for CreateNasJobRequest
Source§impl Default for CreateNasJobRequest
impl Default for CreateNasJobRequest
Source§fn default() -> CreateNasJobRequest
fn default() -> CreateNasJobRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateNasJobRequest
impl Message for CreateNasJobRequest
Source§impl PartialEq for CreateNasJobRequest
impl PartialEq for CreateNasJobRequest
impl StructuralPartialEq for CreateNasJobRequest
Auto Trait Implementations§
impl Freeze for CreateNasJobRequest
impl RefUnwindSafe for CreateNasJobRequest
impl Send for CreateNasJobRequest
impl Sync for CreateNasJobRequest
impl Unpin for CreateNasJobRequest
impl UnwindSafe for CreateNasJobRequest
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