pub struct SessionUiRequestMsg {
pub session_id: String,
pub request_id: String,
pub method: UiRequestMethod,
pub title: String,
pub message: Option<String>,
pub options: Option<Vec<String>>,
pub placeholder: Option<String>,
pub prefill: Option<String>,
pub timeout_ms: Option<u64>,
pub timestamp: String,
}Expand description
Payload of DaemonMessage::SessionUiRequest.
Fields§
§session_id: String§request_id: StringEcho back on session.ui_response.
method: UiRequestMethod§title: String§message: Option<String>§options: Option<Vec<String>>Choices for method: select.
placeholder: Option<String>§prefill: Option<String>§timeout_ms: Option<u64>Auto-cancel deadline in ms from timestamp (daemon-enforced).
timestamp: StringTrait Implementations§
Source§impl Clone for SessionUiRequestMsg
impl Clone for SessionUiRequestMsg
Source§fn clone(&self) -> SessionUiRequestMsg
fn clone(&self) -> SessionUiRequestMsg
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SessionUiRequestMsg
impl Debug for SessionUiRequestMsg
Source§impl<'de> Deserialize<'de> for SessionUiRequestMsg
impl<'de> Deserialize<'de> for SessionUiRequestMsg
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 SessionUiRequestMsg
impl RefUnwindSafe for SessionUiRequestMsg
impl Send for SessionUiRequestMsg
impl Sync for SessionUiRequestMsg
impl Unpin for SessionUiRequestMsg
impl UnsafeUnpin for SessionUiRequestMsg
impl UnwindSafe for SessionUiRequestMsg
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