#[non_exhaustive]pub struct PlateReading {
pub confidence: f64,
pub credits_remaining: i64,
pub detection_id: Option<String>,
pub latency_ms: i64,
pub plate: String,
}Expand description
PlateReading is a resource of Alpr.sh’s API.
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.confidence: f64Confiança da leitura, de 0 a 1 com quatro casas (nas outras rotas conf vai de 0 a 100).
credits_remaining: i64Créditos que sobraram depois desta leitura.
detection_id: Option<String>Hoje sempre nulo: a leitura de uma placa recortada não é guardada.
latency_ms: i64§plate: StringO texto lido, sem hífen, maiúsculo; não é validado pelo formato brasileiro.
Trait Implementations§
Source§impl Clone for PlateReading
impl Clone for PlateReading
Source§impl Debug for PlateReading
impl Debug for PlateReading
Source§impl<'de> Deserialize<'de> for PlateReading
impl<'de> Deserialize<'de> for PlateReading
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 PlateReading
impl PartialEq for PlateReading
Source§impl Serialize for PlateReading
impl Serialize for PlateReading
impl StructuralPartialEq for PlateReading
Auto Trait Implementations§
impl Freeze for PlateReading
impl RefUnwindSafe for PlateReading
impl Send for PlateReading
impl Sync for PlateReading
impl Unpin for PlateReading
impl UnsafeUnpin for PlateReading
impl UnwindSafe for PlateReading
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