#[non_exhaustive]pub struct Input {
pub key: String,
pub uri: String,
pub preprocessing_config: Option<PreprocessingConfig>,
pub attributes: Option<InputAttributes>,
/* private fields */
}
Expand description
Input asset.
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.key: String
A unique key for this input. Must be specified when using advanced mapping and edit lists.
uri: String
URI of the media. Input files must be at least 5 seconds in duration and
stored in Cloud Storage (for example, gs://bucket/inputs/file.mp4
).
If empty, the value is populated from
Job.input_uri. See
Supported input and output
formats.
preprocessing_config: Option<PreprocessingConfig>
Preprocessing configurations.
attributes: Option<InputAttributes>
Optional. Input Attributes.
Implementations§
Source§impl Input
impl Input
pub fn new() -> Self
Sourcepub fn set_preprocessing_config<T>(self, v: T) -> Selfwhere
T: Into<PreprocessingConfig>,
pub fn set_preprocessing_config<T>(self, v: T) -> Selfwhere
T: Into<PreprocessingConfig>,
Sets the value of preprocessing_config.
Sourcepub fn set_or_clear_preprocessing_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<PreprocessingConfig>,
pub fn set_or_clear_preprocessing_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<PreprocessingConfig>,
Sets or clears the value of preprocessing_config.
Sourcepub fn set_attributes<T>(self, v: T) -> Selfwhere
T: Into<InputAttributes>,
pub fn set_attributes<T>(self, v: T) -> Selfwhere
T: Into<InputAttributes>,
Sets the value of attributes.
Sourcepub fn set_or_clear_attributes<T>(self, v: Option<T>) -> Selfwhere
T: Into<InputAttributes>,
pub fn set_or_clear_attributes<T>(self, v: Option<T>) -> Selfwhere
T: Into<InputAttributes>,
Sets or clears the value of attributes.
Trait Implementations§
impl StructuralPartialEq for Input
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
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