#[non_exhaustive]pub struct JobTemplate {
pub name: String,
pub config: Option<JobConfig>,
pub labels: HashMap<String, String>,
/* private fields */
}
Expand description
Transcoding job template resource.
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.name: String
The resource name of the job template.
Format:
projects/{project_number}/locations/{location}/jobTemplates/{job_template}
config: Option<JobConfig>
The configuration for this template.
labels: HashMap<String, String>
The labels associated with this job template. You can use these to organize and group your job templates.
Implementations§
Source§impl JobTemplate
impl JobTemplate
pub fn new() -> Self
Sourcepub fn set_config<T>(self, v: T) -> Self
pub fn set_config<T>(self, v: T) -> Self
Sets the value of config.
Sourcepub fn set_or_clear_config<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_config<T>(self, v: Option<T>) -> Self
Sets or clears the value of config.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Trait Implementations§
Source§impl Clone for JobTemplate
impl Clone for JobTemplate
Source§fn clone(&self) -> JobTemplate
fn clone(&self) -> JobTemplate
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 JobTemplate
impl Debug for JobTemplate
Source§impl Default for JobTemplate
impl Default for JobTemplate
Source§fn default() -> JobTemplate
fn default() -> JobTemplate
Returns the “default value” for a type. Read more
Source§impl Message for JobTemplate
impl Message for JobTemplate
Source§impl PartialEq for JobTemplate
impl PartialEq for JobTemplate
impl StructuralPartialEq for JobTemplate
Auto Trait Implementations§
impl Freeze for JobTemplate
impl RefUnwindSafe for JobTemplate
impl Send for JobTemplate
impl Sync for JobTemplate
impl Unpin for JobTemplate
impl UnwindSafe for JobTemplate
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