pub struct Request {
pub action: String,
pub project: String,
pub settings: Map<String, Value>,
pub input: Map<String, Value>,
pub context: Context,
pub button: Option<String>,
pub changed: Option<String>,
pub state: Option<Value>,
pub resumed: bool,
pub locale: Option<String>,
}Fields§
§action: StringWhich of the manifest’s [[actions]] to run.
project: String§settings: Map<String, Value>The plugin’s declared settings, every key present.
input: Map<String, Value>A value for each field of the page the user was on; on the first call, the action’s
[[actions.field]]s.
context: ContextThe id of the button pressed; none on the first call, which opens the action or runs the manifest’s fields.
changed: Option<String>Reserved for fields that call the action when they change; always none.
state: Option<Value>The last page’s state, as it was written; none on the first call.
resumed: boolSet on the first call after Hammer restored a run the user had left.
locale: Option<String>The UI’s BCP 47 tag, for replying in the user’s language; not the project’s language.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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 Forget for Request
impl Freeze for Request
impl Move for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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