pub struct GovernmentLetter {
pub id: String,
pub sender: String,
pub subject: String,
pub received_at_unix: u32,
pub received_at_instant: Option<InstantBridge>,
pub attachment_blob_hash: Option<String>,
pub action_required: bool,
}Expand description
A letter (or equivalent formal communication) received from a government body or agency.
The letter body itself lives out-of-band as a blob (attachment_blob_hash); this record is
the indexable envelope over it, flagging whether the owner must act on it.
Fields§
§id: String§sender: String§subject: String§received_at_unix: u32§received_at_instant: Option<InstantBridge>High-resolution instant (T71 bridge). Preferred over received_at_unix
when present; the u32 field is kept for backward-compatible deserialization.
attachment_blob_hash: Option<String>§action_required: boolImplementations§
Source§impl GovernmentLetter
impl GovernmentLetter
Sourcepub fn new(
sender: impl Into<String>,
subject: impl Into<String>,
received_at_unix: u32,
) -> Self
pub fn new( sender: impl Into<String>, subject: impl Into<String>, received_at_unix: u32, ) -> Self
Creates a new instance.
Sourcepub fn received_at(&self) -> InstantBridge
pub fn received_at(&self) -> InstantBridge
Resolve the received-at instant, preferring the high-resolution
InstantBridge field when present (T71 bridge).
Trait Implementations§
Source§impl Clone for GovernmentLetter
impl Clone for GovernmentLetter
Source§impl Debug for GovernmentLetter
impl Debug for GovernmentLetter
Source§impl<'de> Deserialize<'de> for GovernmentLetter
impl<'de> Deserialize<'de> for GovernmentLetter
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
impl Eq for GovernmentLetter
Source§impl PartialEq for GovernmentLetter
impl PartialEq for GovernmentLetter
Source§impl Serialize for GovernmentLetter
impl Serialize for GovernmentLetter
impl StructuralPartialEq for GovernmentLetter
Auto Trait Implementations§
impl Freeze for GovernmentLetter
impl RefUnwindSafe for GovernmentLetter
impl Send for GovernmentLetter
impl Sync for GovernmentLetter
impl Unpin for GovernmentLetter
impl UnsafeUnpin for GovernmentLetter
impl UnwindSafe for GovernmentLetter
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