pub struct MedicationCatalogEntry {
pub id: String,
pub name: String,
pub dose: String,
pub route: String,
pub schedule_times: Vec<String>,
pub prescriber: Option<String>,
pub ceased_at_unix: Option<u32>,
pub ceased_at_instant: Option<InstantBridge>,
pub created_at_unix: u32,
pub created_at_instant: Option<InstantBridge>,
}Fields§
§id: String§name: String§dose: String§route: String§schedule_times: Vec<String>HH:MM local schedule slots (e.g. [“08:00”, “20:00”]).
prescriber: Option<String>§ceased_at_unix: Option<u32>§ceased_at_instant: Option<InstantBridge>High-resolution instant (T71 bridge). Preferred over ceased_at_unix
when present; the u32 field is kept for backward-compatible deserialization.
created_at_unix: u32§created_at_instant: Option<InstantBridge>High-resolution instant (T71 bridge). Preferred over created_at_unix
when present; the u32 field is kept for backward-compatible deserialization.
Trait Implementations§
Source§impl Clone for MedicationCatalogEntry
impl Clone for MedicationCatalogEntry
Source§impl Debug for MedicationCatalogEntry
impl Debug for MedicationCatalogEntry
Source§impl<'de> Deserialize<'de> for MedicationCatalogEntry
impl<'de> Deserialize<'de> for MedicationCatalogEntry
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 MedicationCatalogEntry
impl PartialEq for MedicationCatalogEntry
Source§impl Serialize for MedicationCatalogEntry
impl Serialize for MedicationCatalogEntry
impl StructuralPartialEq for MedicationCatalogEntry
Auto Trait Implementations§
impl Freeze for MedicationCatalogEntry
impl RefUnwindSafe for MedicationCatalogEntry
impl Send for MedicationCatalogEntry
impl Sync for MedicationCatalogEntry
impl Unpin for MedicationCatalogEntry
impl UnsafeUnpin for MedicationCatalogEntry
impl UnwindSafe for MedicationCatalogEntry
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