pub struct ModalSubmitEvent {
pub callback_id: String,
pub view_id: String,
pub user: Author,
pub values: HashMap<String, String>,
pub private_metadata: Option<String>,
pub adapter_name: String,
}Expand description
A modal view was submitted by a user.
Fields§
§callback_id: StringCallback identifier used to route this submission.
view_id: StringPlatform-assigned view identifier.
user: AuthorThe user who submitted the modal.
values: HashMap<String, String>Key-value pairs from the modal’s input elements.
private_metadata: Option<String>Opaque metadata string passed through from the modal open call.
adapter_name: StringName of the adapter that delivered this event.
Trait Implementations§
Source§impl Clone for ModalSubmitEvent
impl Clone for ModalSubmitEvent
Source§fn clone(&self) -> ModalSubmitEvent
fn clone(&self) -> ModalSubmitEvent
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 ModalSubmitEvent
impl Debug for ModalSubmitEvent
Source§impl<'de> Deserialize<'de> for ModalSubmitEvent
impl<'de> Deserialize<'de> for ModalSubmitEvent
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 ModalSubmitEvent
impl RefUnwindSafe for ModalSubmitEvent
impl Send for ModalSubmitEvent
impl Sync for ModalSubmitEvent
impl Unpin for ModalSubmitEvent
impl UnsafeUnpin for ModalSubmitEvent
impl UnwindSafe for ModalSubmitEvent
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