pub struct DetectionLabel {
pub center_world: [f32; 3],
pub bbox_px: Option<[f32; 4]>,
pub bbox_norm: Option<[f32; 4]>,
pub source: Option<LabelSource>,
pub source_confidence: Option<f32>,
}Fields§
§center_world: [f32; 3]§bbox_px: Option<[f32; 4]>§bbox_norm: Option<[f32; 4]>§source: Option<LabelSource>§source_confidence: Option<f32>Implementations§
Source§impl DetectionLabel
impl DetectionLabel
pub fn validate(&self) -> Result<(), ValidationError>
Trait Implementations§
Source§impl Clone for DetectionLabel
impl Clone for DetectionLabel
Source§fn clone(&self) -> DetectionLabel
fn clone(&self) -> DetectionLabel
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 DetectionLabel
impl Debug for DetectionLabel
Source§impl<'de> Deserialize<'de> for DetectionLabel
impl<'de> Deserialize<'de> for DetectionLabel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DetectionLabel
impl RefUnwindSafe for DetectionLabel
impl Send for DetectionLabel
impl Sync for DetectionLabel
impl Unpin for DetectionLabel
impl UnwindSafe for DetectionLabel
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