#[non_exhaustive]pub struct VideoMetadata {
pub start_offset: Option<Duration>,
pub end_offset: Option<Duration>,
/* private fields */
}Available on crate features
data-foundry-service or gen-ai-cache-service or gen-ai-tuning-service or llm-utility-service or prediction-service or vertex-rag-service only.Expand description
Metadata describes the input video content.
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.start_offset: Option<Duration>Optional. The start offset of the video.
end_offset: Option<Duration>Optional. The end offset of the video.
Implementations§
Source§impl VideoMetadata
impl VideoMetadata
pub fn new() -> Self
Sourcepub fn set_start_offset<T>(self, v: T) -> Self
pub fn set_start_offset<T>(self, v: T) -> Self
Sets the value of start_offset.
§Example
ⓘ
use wkt::Duration;
let x = VideoMetadata::new().set_start_offset(Duration::default()/* use setters */);Sourcepub fn set_or_clear_start_offset<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_start_offset<T>(self, v: Option<T>) -> Self
Sets or clears the value of start_offset.
§Example
ⓘ
use wkt::Duration;
let x = VideoMetadata::new().set_or_clear_start_offset(Some(Duration::default()/* use setters */));
let x = VideoMetadata::new().set_or_clear_start_offset(None::<Duration>);Sourcepub fn set_end_offset<T>(self, v: T) -> Self
pub fn set_end_offset<T>(self, v: T) -> Self
Sets the value of end_offset.
§Example
ⓘ
use wkt::Duration;
let x = VideoMetadata::new().set_end_offset(Duration::default()/* use setters */);Sourcepub fn set_or_clear_end_offset<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_offset<T>(self, v: Option<T>) -> Self
Sets or clears the value of end_offset.
§Example
ⓘ
use wkt::Duration;
let x = VideoMetadata::new().set_or_clear_end_offset(Some(Duration::default()/* use setters */));
let x = VideoMetadata::new().set_or_clear_end_offset(None::<Duration>);Trait Implementations§
Source§impl Clone for VideoMetadata
impl Clone for VideoMetadata
Source§fn clone(&self) -> VideoMetadata
fn clone(&self) -> VideoMetadata
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 VideoMetadata
impl Debug for VideoMetadata
Source§impl Default for VideoMetadata
impl Default for VideoMetadata
Source§fn default() -> VideoMetadata
fn default() -> VideoMetadata
Returns the “default value” for a type. Read more
Source§impl Message for VideoMetadata
impl Message for VideoMetadata
Source§impl PartialEq for VideoMetadata
impl PartialEq for VideoMetadata
impl StructuralPartialEq for VideoMetadata
Auto Trait Implementations§
impl Freeze for VideoMetadata
impl RefUnwindSafe for VideoMetadata
impl Send for VideoMetadata
impl Sync for VideoMetadata
impl Unpin for VideoMetadata
impl UnwindSafe for VideoMetadata
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