pub struct AssessmentResult {
pub id: String,
pub instrument_id: String,
pub responses: Vec<u8>,
pub total: u32,
pub band_label: String,
pub interpretation: String,
pub flags: Vec<String>,
pub taken_at_unix: u32,
pub taken_at_instant: Option<InstantBridge>,
}Expand description
The scored outcome of one assessment sitting.
Fields§
§id: String§instrument_id: String§responses: Vec<u8>§total: u32§band_label: String§interpretation: String§flags: Vec<String>Triggered safety-flag messages (e.g. self-harm), independent of the total.
taken_at_unix: u32§taken_at_instant: Option<InstantBridge>High-resolution instant (T71 bridge). Preferred over taken_at_unix
when present; the u32 field is kept for backward-compatible deserialization.
Implementations§
Source§impl AssessmentResult
impl AssessmentResult
Sourcepub fn taken_at(&self) -> InstantBridge
pub fn taken_at(&self) -> InstantBridge
Resolve the taken-at instant, preferring the high-resolution
InstantBridge field when present (T71 bridge).
Trait Implementations§
Source§impl Clone for AssessmentResult
impl Clone for AssessmentResult
Source§impl Debug for AssessmentResult
impl Debug for AssessmentResult
Source§impl<'de> Deserialize<'de> for AssessmentResult
impl<'de> Deserialize<'de> for AssessmentResult
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 AssessmentResult
Source§impl PartialEq for AssessmentResult
impl PartialEq for AssessmentResult
Source§impl Serialize for AssessmentResult
impl Serialize for AssessmentResult
impl StructuralPartialEq for AssessmentResult
Auto Trait Implementations§
impl Freeze for AssessmentResult
impl RefUnwindSafe for AssessmentResult
impl Send for AssessmentResult
impl Sync for AssessmentResult
impl Unpin for AssessmentResult
impl UnsafeUnpin for AssessmentResult
impl UnwindSafe for AssessmentResult
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