pub struct AnswerRegion {
pub label: Option<String>,
pub bbox: Option<BoxPx>,
pub mask: Option<RleMask>,
pub score: Option<f64>,
}Expand description
One region of an answer.
Fields§
§label: Option<String>The label the backend gave.
bbox: Option<BoxPx>The box in source pixels.
mask: Option<RleMask>The mask, for segmentation answers.
score: Option<f64>The backend’s confidence.
Trait Implementations§
Source§impl Clone for AnswerRegion
impl Clone for AnswerRegion
Source§impl Debug for AnswerRegion
impl Debug for AnswerRegion
Source§impl<'de> Deserialize<'de> for AnswerRegion
impl<'de> Deserialize<'de> for AnswerRegion
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
Source§impl PartialEq for AnswerRegion
impl PartialEq for AnswerRegion
Source§impl Serialize for AnswerRegion
impl Serialize for AnswerRegion
impl StructuralPartialEq for AnswerRegion
Auto Trait Implementations§
impl Forget for AnswerRegion
impl Freeze for AnswerRegion
impl Move for AnswerRegion
impl RefUnwindSafe for AnswerRegion
impl Send for AnswerRegionwhere
RawVecInner: Send,
impl Sync for AnswerRegionwhere
RawVecInner: Sync,
impl Unpin for AnswerRegion
impl UnsafeUnpin for AnswerRegion
impl UnwindSafe for AnswerRegionwhere
RawVecInner: UnwindSafe,
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