#[non_exhaustive]pub struct JobReference {
pub project_id: String,
pub job_id: String,
/* private fields */
}Expand description
Encapsulates the full scoping used to reference a job.
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.project_id: StringOptional. The ID of the Google Cloud Platform project that the job belongs to. If specified, must match the request project ID.
job_id: StringOptional. The job ID, which must be unique within the project.
The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The maximum length is 100 characters.
If not specified by the caller, the job ID will be provided by the server.
Implementations§
Source§impl JobReference
impl JobReference
pub fn new() -> Self
Sourcepub fn set_project_id<T: Into<String>>(self, v: T) -> Self
pub fn set_project_id<T: Into<String>>(self, v: T) -> Self
Sets the value of project_id.
Sourcepub fn set_job_id<T: Into<String>>(self, v: T) -> Self
pub fn set_job_id<T: Into<String>>(self, v: T) -> Self
Sets the value of job_id.
Trait Implementations§
Source§impl Clone for JobReference
impl Clone for JobReference
Source§fn clone(&self) -> JobReference
fn clone(&self) -> JobReference
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 JobReference
impl Debug for JobReference
Source§impl Default for JobReference
impl Default for JobReference
Source§fn default() -> JobReference
fn default() -> JobReference
Returns the “default value” for a type. Read more
Source§impl Message for JobReference
impl Message for JobReference
Source§impl PartialEq for JobReference
impl PartialEq for JobReference
impl StructuralPartialEq for JobReference
Auto Trait Implementations§
impl Freeze for JobReference
impl RefUnwindSafe for JobReference
impl Send for JobReference
impl Sync for JobReference
impl Unpin for JobReference
impl UnwindSafe for JobReference
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