pub struct WelfareStream {
pub id: String,
pub program_name: String,
pub reference: Option<String>,
pub status: StreamStatus,
pub started_at_unix: u32,
pub started_at_instant: Option<InstantBridge>,
}Expand description
A welfare / benefit / assistance stream the owner is engaged with — a payment program, a
support service, a subsidy. reference is the program’s own case/claim reference where one
exists. This is the supply side of welfare support.
Fields§
§id: String§program_name: String§reference: Option<String>§status: StreamStatus§started_at_unix: u32§started_at_instant: Option<InstantBridge>High-resolution instant (T71 bridge). Preferred over started_at_unix
when present; the u32 field is kept for backward-compatible deserialization.
Implementations§
Source§impl WelfareStream
impl WelfareStream
Sourcepub fn new(program_name: impl Into<String>, started_at_unix: u32) -> Self
pub fn new(program_name: impl Into<String>, started_at_unix: u32) -> Self
Creates a new instance.
Sourcepub fn started_at(&self) -> InstantBridge
pub fn started_at(&self) -> InstantBridge
Resolve the started-at instant, preferring the high-resolution
InstantBridge field when present (T71 bridge).
Trait Implementations§
Source§impl Clone for WelfareStream
impl Clone for WelfareStream
Source§impl Debug for WelfareStream
impl Debug for WelfareStream
Source§impl<'de> Deserialize<'de> for WelfareStream
impl<'de> Deserialize<'de> for WelfareStream
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 WelfareStream
Source§impl PartialEq for WelfareStream
impl PartialEq for WelfareStream
Source§impl Serialize for WelfareStream
impl Serialize for WelfareStream
impl StructuralPartialEq for WelfareStream
Auto Trait Implementations§
impl Freeze for WelfareStream
impl RefUnwindSafe for WelfareStream
impl Send for WelfareStream
impl Sync for WelfareStream
impl Unpin for WelfareStream
impl UnsafeUnpin for WelfareStream
impl UnwindSafe for WelfareStream
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