GoodMemGoodMem
ReferenceSdkRustTypes

DecisionBoxAnswer

Rust struct goodmem::models::DecisionBoxAnswer: declaration, fields or variants, and implementations.

All types

Struct DecisionBoxAnswer

goodmem::models::DecisionBoxAnswer

Rectangle with coordinates expressed as fractions of the image width or height. A returned box does not guarantee that the object is present.

pub struct DecisionBoxAnswer {
    pub left: f64,
    pub top: f64,
    pub right: f64,
    pub bottom: f64,
    pub confidence: Option<f64>,
}

Fields

left

pub left: f64

Left edge as a fraction of image width. Wire name: left.

top

pub top: f64

Top edge as a fraction of image height. Wire name: top.

pub right: f64

Right edge as a fraction of image width. Wire name: right.

bottom

pub bottom: f64

Bottom edge as a fraction of image height. Wire name: bottom.

confidence

pub confidence: Option<f64>

Optional provider confidence. Wire name: confidence.

Implementations

validate

pub fn validate(&self) -> crate::Result<()>

Validate the request before sending, without making an HTTP call.

Trait implementations

  • Clone (derived)
  • Default (derived)
  • PartialEq (derived)
  • Serialize (derived)
  • impl<'de> Deserialize<'de> for DecisionBoxAnswer
  • impl std::fmt::Debug for DecisionBoxAnswer

On this page