pub enum ActionSource {
Form {
action_url: String,
method: String,
content_type: String,
fields: Vec<FormField>,
},
Api {
url: String,
method: String,
body_template: Option<String>,
},
Platform {
platform: String,
action_type: String,
},
}Expand description
Where an HttpAction was discovered.
Variants§
Form
Discovered from an HTML <form> element.
Fields
Api
Discovered from JavaScript API calls.
Fields
Platform
Discovered from a known e-commerce platform.
Trait Implementations§
Source§impl Clone for ActionSource
impl Clone for ActionSource
Source§fn clone(&self) -> ActionSource
fn clone(&self) -> ActionSource
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 ActionSource
impl Debug for ActionSource
Source§impl<'de> Deserialize<'de> for ActionSource
impl<'de> Deserialize<'de> for ActionSource
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 ActionSource
impl RefUnwindSafe for ActionSource
impl Send for ActionSource
impl Sync for ActionSource
impl Unpin for ActionSource
impl UnsafeUnpin for ActionSource
impl UnwindSafe for ActionSource
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