pub struct AnimalRecord {
pub id: AnimalId,
pub owner_id: Option<OwnerId>,
pub name: Option<String>,
pub species: Option<String>,
pub birthday: Option<String>,
pub unknown: BTreeMap<String, Value>,
}Expand description
Gingr animal response DTO before pet-domain mapping.
Fields§
§id: AnimalIdProvider record identifier observed in the Gingr payload.
owner_id: Option<OwnerId>Provider owner/customer identifier observed in the Gingr payload.
name: Option<String>Provider display label retained for operator context; NVA-specific naming rules are applied downstream.
species: Option<String>Provider species label for the animal; mapping code must validate any NVA pet-domain meaning separately.
birthday: Option<String>Provider birthday string for the animal, retained raw because this crate does not validate age semantics.
unknown: BTreeMap<String, Value>Extra provider fields preserved for audit and future mapping without becoming validated NVA facts.
Trait Implementations§
Source§impl Clone for AnimalRecord
impl Clone for AnimalRecord
Source§fn clone(&self) -> AnimalRecord
fn clone(&self) -> AnimalRecord
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 AnimalRecord
impl Debug for AnimalRecord
Source§impl<'de> Deserialize<'de> for AnimalRecord
impl<'de> Deserialize<'de> for AnimalRecord
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 AnimalRecord
impl PartialEq for AnimalRecord
Source§impl Serialize for AnimalRecord
impl Serialize for AnimalRecord
impl StructuralPartialEq for AnimalRecord
Auto Trait Implementations§
impl Freeze for AnimalRecord
impl RefUnwindSafe for AnimalRecord
impl Send for AnimalRecord
impl Sync for AnimalRecord
impl Unpin for AnimalRecord
impl UnsafeUnpin for AnimalRecord
impl UnwindSafe for AnimalRecord
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