#[non_exhaustive]pub struct JobConfig {
pub inputs: Vec<Input>,
pub edit_list: Vec<EditAtom>,
pub elementary_streams: Vec<ElementaryStream>,
pub mux_streams: Vec<MuxStream>,
pub manifests: Vec<Manifest>,
pub output: Option<Output>,
pub ad_breaks: Vec<AdBreak>,
pub pubsub_destination: Option<PubsubDestination>,
pub sprite_sheets: Vec<SpriteSheet>,
pub overlays: Vec<Overlay>,
pub encryptions: Vec<Encryption>,
/* private fields */
}Expand description
Job configuration
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.inputs: Vec<Input>List of input assets stored in Cloud Storage.
edit_list: Vec<EditAtom>List of edit atoms. Defines the ultimate timeline of the resulting file or manifest.
elementary_streams: Vec<ElementaryStream>List of elementary streams.
mux_streams: Vec<MuxStream>List of multiplexing settings for output streams.
manifests: Vec<Manifest>List of output manifests.
output: Option<Output>Output configuration.
ad_breaks: Vec<AdBreak>List of ad breaks. Specifies where to insert ad break tags in the output manifests.
pubsub_destination: Option<PubsubDestination>Destination on Pub/Sub.
sprite_sheets: Vec<SpriteSheet>List of output sprite sheets. Spritesheets require at least one VideoStream in the Jobconfig.
overlays: Vec<Overlay>List of overlays on the output video, in descending Z-order.
encryptions: Vec<Encryption>List of encryption configurations for the content.
Each configuration has an ID. Specify this ID in the
MuxStream.encryption_id
field to indicate the configuration to use for that MuxStream output.
Implementations§
Source§impl JobConfig
impl JobConfig
pub fn new() -> Self
Sourcepub fn set_inputs<T, V>(self, v: T) -> Self
pub fn set_inputs<T, V>(self, v: T) -> Self
Sourcepub fn set_edit_list<T, V>(self, v: T) -> Self
pub fn set_edit_list<T, V>(self, v: T) -> Self
Sourcepub fn set_elementary_streams<T, V>(self, v: T) -> Self
pub fn set_elementary_streams<T, V>(self, v: T) -> Self
Sets the value of elementary_streams.
§Example
use google_cloud_video_transcoder_v1::model::ElementaryStream;
let x = JobConfig::new()
.set_elementary_streams([
ElementaryStream::default()/* use setters */,
ElementaryStream::default()/* use (different) setters */,
]);Sourcepub fn set_mux_streams<T, V>(self, v: T) -> Self
pub fn set_mux_streams<T, V>(self, v: T) -> Self
Sets the value of mux_streams.
§Example
use google_cloud_video_transcoder_v1::model::MuxStream;
let x = JobConfig::new()
.set_mux_streams([
MuxStream::default()/* use setters */,
MuxStream::default()/* use (different) setters */,
]);Sourcepub fn set_manifests<T, V>(self, v: T) -> Self
pub fn set_manifests<T, V>(self, v: T) -> Self
Sourcepub fn set_output<T>(self, v: T) -> Self
pub fn set_output<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_output<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_output<T>(self, v: Option<T>) -> Self
Sourcepub fn set_ad_breaks<T, V>(self, v: T) -> Self
pub fn set_ad_breaks<T, V>(self, v: T) -> Self
Sourcepub fn set_pubsub_destination<T>(self, v: T) -> Selfwhere
T: Into<PubsubDestination>,
pub fn set_pubsub_destination<T>(self, v: T) -> Selfwhere
T: Into<PubsubDestination>,
Sets the value of pubsub_destination.
§Example
use google_cloud_video_transcoder_v1::model::PubsubDestination;
let x = JobConfig::new().set_pubsub_destination(PubsubDestination::default()/* use setters */);Sourcepub fn set_or_clear_pubsub_destination<T>(self, v: Option<T>) -> Selfwhere
T: Into<PubsubDestination>,
pub fn set_or_clear_pubsub_destination<T>(self, v: Option<T>) -> Selfwhere
T: Into<PubsubDestination>,
Sets or clears the value of pubsub_destination.
§Example
use google_cloud_video_transcoder_v1::model::PubsubDestination;
let x = JobConfig::new().set_or_clear_pubsub_destination(Some(PubsubDestination::default()/* use setters */));
let x = JobConfig::new().set_or_clear_pubsub_destination(None::<PubsubDestination>);Sourcepub fn set_sprite_sheets<T, V>(self, v: T) -> Self
pub fn set_sprite_sheets<T, V>(self, v: T) -> Self
Sets the value of sprite_sheets.
§Example
use google_cloud_video_transcoder_v1::model::SpriteSheet;
let x = JobConfig::new()
.set_sprite_sheets([
SpriteSheet::default()/* use setters */,
SpriteSheet::default()/* use (different) setters */,
]);Sourcepub fn set_overlays<T, V>(self, v: T) -> Self
pub fn set_overlays<T, V>(self, v: T) -> Self
Sourcepub fn set_encryptions<T, V>(self, v: T) -> Self
pub fn set_encryptions<T, V>(self, v: T) -> Self
Sets the value of encryptions.
§Example
use google_cloud_video_transcoder_v1::model::Encryption;
let x = JobConfig::new()
.set_encryptions([
Encryption::default()/* use setters */,
Encryption::default()/* use (different) setters */,
]);