#[non_exhaustive]pub struct LabelFrame {
pub time_offset: Option<Duration>,
pub confidence: f32,
/* private fields */
}Expand description
Video frame level annotation results for label detection.
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.time_offset: Option<Duration>Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.
confidence: f32Confidence that the label is accurate. Range: [0, 1].
Implementations§
Source§impl LabelFrame
impl LabelFrame
Sourcepub fn set_time_offset<T>(self, v: T) -> Self
pub fn set_time_offset<T>(self, v: T) -> Self
Sets the value of time_offset.
§Example
ⓘ
use wkt::Duration;
let x = LabelFrame::new().set_time_offset(Duration::default()/* use setters */);Sourcepub fn set_or_clear_time_offset<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_time_offset<T>(self, v: Option<T>) -> Self
Sets or clears the value of time_offset.
§Example
ⓘ
use wkt::Duration;
let x = LabelFrame::new().set_or_clear_time_offset(Some(Duration::default()/* use setters */));
let x = LabelFrame::new().set_or_clear_time_offset(None::<Duration>);Sourcepub fn set_confidence<T: Into<f32>>(self, v: T) -> Self
pub fn set_confidence<T: Into<f32>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for LabelFrame
impl Clone for LabelFrame
Source§fn clone(&self) -> LabelFrame
fn clone(&self) -> LabelFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LabelFrame
impl Debug for LabelFrame
Source§impl Default for LabelFrame
impl Default for LabelFrame
Source§fn default() -> LabelFrame
fn default() -> LabelFrame
Returns the “default value” for a type. Read more
Source§impl PartialEq for LabelFrame
impl PartialEq for LabelFrame
Source§fn eq(&self, other: &LabelFrame) -> bool
fn eq(&self, other: &LabelFrame) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LabelFrame
Auto Trait Implementations§
impl Freeze for LabelFrame
impl RefUnwindSafe for LabelFrame
impl Send for LabelFrame
impl Sync for LabelFrame
impl Unpin for LabelFrame
impl UnsafeUnpin for LabelFrame
impl UnwindSafe for LabelFrame
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