pub struct MistInput {
pub data: Mapping,
}Expand description
This is the input that is passed from the engine to the package for processing.
There is only one field, and that is the freeform data field that can take
any sort of map data the end-user wishes to provide to the package.
Fields§
§data: MappingFreeform data field.
Implementations§
Source§impl MistInput
impl MistInput
Sourcepub fn try_into_data<'a, T>(&self) -> Result<T, Error>where
T: DeserializeOwned,
pub fn try_into_data<'a, T>(&self) -> Result<T, Error>where
T: DeserializeOwned,
Tries to cast the input into any Deserialize types, useful for passing the input into just about any type the package writer wishes to receive.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MistInput
impl<'de> Deserialize<'de> for MistInput
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 StructuralPartialEq for MistInput
Auto Trait Implementations§
impl Freeze for MistInput
impl RefUnwindSafe for MistInput
impl Send for MistInput
impl Sync for MistInput
impl Unpin for MistInput
impl UnwindSafe for MistInput
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