pub struct InstrumentDto {
pub id: String,
pub name: String,
pub domain: String,
pub attribution: String,
pub prompt: String,
pub items: Vec<String>,
pub options: Vec<(u8, String)>,
pub bands: Vec<(u32, u32, String, String)>,
pub max_score: u32,
pub disclaimer: String,
}Expand description
A serializable snapshot of an instrument for the UI (items, options, bands, disclaimer).
Fields§
§id: String§name: String§domain: String§attribution: String§prompt: String§items: Vec<String>§options: Vec<(u8, String)>(value, label) pairs for the ordinal scale.
bands: Vec<(u32, u32, String, String)>(min, max, label, interpretation) severity bands.
max_score: u32§disclaimer: StringTrait Implementations§
Source§impl Clone for InstrumentDto
impl Clone for InstrumentDto
Source§impl Debug for InstrumentDto
impl Debug for InstrumentDto
Source§impl<'de> Deserialize<'de> for InstrumentDto
impl<'de> Deserialize<'de> for InstrumentDto
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
Auto Trait Implementations§
impl Freeze for InstrumentDto
impl RefUnwindSafe for InstrumentDto
impl Send for InstrumentDto
impl Sync for InstrumentDto
impl Unpin for InstrumentDto
impl UnsafeUnpin for InstrumentDto
impl UnwindSafe for InstrumentDto
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