pub struct ModelUserInputViewModel {
pub allowed_inputs: Vec<String>,
pub allowed_responders: Vec<String>,
pub completed: bool,
pub completed_at: String,
pub created_at: String,
pub id: String,
pub input: String,
pub note: String,
pub responder: String,
pub timeout_at: String,
}Fields§
§allowed_inputs: Vec<String>if not empty, only listed inputs are allowed
allowed_responders: Vec<String>if not empty, only listed responders are allowed to provide input
completed: boolwhether or not the user input is completed yet
completed_at: Stringtime at which the user input was modified
created_at: Stringtime at which the user input was created
id: StringID of the user input
input: Stringinput provided by a responder user
note: Stringnote added to user input at the time an input is provided
responder: Stringuser responding to the user input request
timeout_at: Stringtime after which the user input may be expired and no longer actionable
Implementations§
Trait Implementations§
Source§impl Clone for ModelUserInputViewModel
impl Clone for ModelUserInputViewModel
Source§fn clone(&self) -> ModelUserInputViewModel
fn clone(&self) -> ModelUserInputViewModel
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModelUserInputViewModel
impl Debug for ModelUserInputViewModel
Source§impl Default for ModelUserInputViewModel
impl Default for ModelUserInputViewModel
Source§fn default() -> ModelUserInputViewModel
fn default() -> ModelUserInputViewModel
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelUserInputViewModel
impl<'de> Deserialize<'de> for ModelUserInputViewModel
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
Source§impl PartialEq for ModelUserInputViewModel
impl PartialEq for ModelUserInputViewModel
Source§impl Serialize for ModelUserInputViewModel
impl Serialize for ModelUserInputViewModel
impl StructuralPartialEq for ModelUserInputViewModel
Auto Trait Implementations§
impl Freeze for ModelUserInputViewModel
impl RefUnwindSafe for ModelUserInputViewModel
impl Send for ModelUserInputViewModel
impl Sync for ModelUserInputViewModel
impl Unpin for ModelUserInputViewModel
impl UnwindSafe for ModelUserInputViewModel
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