pub struct AssistanceNeed {
pub id: String,
pub category: String,
pub description: String,
pub urgency: Urgency,
pub identified_at_unix: u32,
pub identified_at_instant: Option<InstantBridge>,
}Expand description
An assistance need the owner (or their proxy) has identified — e.g. “emergency housing”, “food relief”, “help completing a form”. This is the demand side of welfare support.
Fields§
§id: String§category: StringBroad classification of the need, e.g. “housing”, “food”, “legal”, “medical”.
description: String§urgency: Urgency§identified_at_unix: u32§identified_at_instant: Option<InstantBridge>High-resolution instant (T71 bridge). Preferred over identified_at_unix
when present; the u32 field is kept for backward-compatible deserialization.
Implementations§
Source§impl AssistanceNeed
impl AssistanceNeed
Sourcepub fn new(
category: impl Into<String>,
description: impl Into<String>,
identified_at_unix: u32,
) -> Self
pub fn new( category: impl Into<String>, description: impl Into<String>, identified_at_unix: u32, ) -> Self
Creates a new instance.
Sourcepub fn identified_at(&self) -> InstantBridge
pub fn identified_at(&self) -> InstantBridge
Resolve the identified-at instant, preferring the high-resolution
InstantBridge field when present (T71 bridge).
Trait Implementations§
Source§impl Clone for AssistanceNeed
impl Clone for AssistanceNeed
Source§impl Debug for AssistanceNeed
impl Debug for AssistanceNeed
Source§impl<'de> Deserialize<'de> for AssistanceNeed
impl<'de> Deserialize<'de> for AssistanceNeed
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 AssistanceNeed
Source§impl PartialEq for AssistanceNeed
impl PartialEq for AssistanceNeed
Source§impl Serialize for AssistanceNeed
impl Serialize for AssistanceNeed
impl StructuralPartialEq for AssistanceNeed
Auto Trait Implementations§
impl Freeze for AssistanceNeed
impl RefUnwindSafe for AssistanceNeed
impl Send for AssistanceNeed
impl Sync for AssistanceNeed
impl Unpin for AssistanceNeed
impl UnsafeUnpin for AssistanceNeed
impl UnwindSafe for AssistanceNeed
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