#[non_exhaustive]pub struct VideoObjectTrackingPredictionInstance {
pub content: String,
pub mime_type: String,
pub time_segment_start: String,
pub time_segment_end: String,
/* private fields */
}Expand description
Prediction input format for Video Object Tracking.
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.content: StringThe Google Cloud Storage location of the video on which to perform the prediction.
mime_type: StringThe MIME type of the content of the video. Only the following are supported: video/mp4 video/avi video/quicktime
time_segment_start: StringThe beginning, inclusive, of the video’s time segment on which to perform the prediction. Expressed as a number of seconds as measured from the start of the video, with “s” appended at the end. Fractions are allowed, up to a microsecond precision.
time_segment_end: StringThe end, exclusive, of the video’s time segment on which to perform the prediction. Expressed as a number of seconds as measured from the start of the video, with “s” appended at the end. Fractions are allowed, up to a microsecond precision, and “inf” or “Infinity” is allowed, which means the end of the video.
Implementations§
Source§impl VideoObjectTrackingPredictionInstance
impl VideoObjectTrackingPredictionInstance
pub fn new() -> Self
Sourcepub fn set_content<T: Into<String>>(self, v: T) -> Self
pub fn set_content<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_mime_type<T: Into<String>>(self, v: T) -> Self
pub fn set_mime_type<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_time_segment_start<T: Into<String>>(self, v: T) -> Self
pub fn set_time_segment_start<T: Into<String>>(self, v: T) -> Self
Sets the value of time_segment_start.
§Example
let x = VideoObjectTrackingPredictionInstance::new().set_time_segment_start("example");Sourcepub fn set_time_segment_end<T: Into<String>>(self, v: T) -> Self
pub fn set_time_segment_end<T: Into<String>>(self, v: T) -> Self
Sets the value of time_segment_end.
§Example
let x = VideoObjectTrackingPredictionInstance::new().set_time_segment_end("example");Trait Implementations§
Source§impl Clone for VideoObjectTrackingPredictionInstance
impl Clone for VideoObjectTrackingPredictionInstance
Source§fn clone(&self) -> VideoObjectTrackingPredictionInstance
fn clone(&self) -> VideoObjectTrackingPredictionInstance
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for VideoObjectTrackingPredictionInstance
impl Default for VideoObjectTrackingPredictionInstance
Source§fn default() -> VideoObjectTrackingPredictionInstance
fn default() -> VideoObjectTrackingPredictionInstance
Source§impl PartialEq for VideoObjectTrackingPredictionInstance
impl PartialEq for VideoObjectTrackingPredictionInstance
Source§fn eq(&self, other: &VideoObjectTrackingPredictionInstance) -> bool
fn eq(&self, other: &VideoObjectTrackingPredictionInstance) -> bool
self and other values to be equal, and is used by ==.