pub struct CompiledAction {
pub name: String,
pub belongs_to: String,
pub is_instance_method: bool,
pub http_method: String,
pub endpoint_template: String,
pub params: Vec<ActionParam>,
pub requires_auth: bool,
pub execution_path: String,
pub confidence: f32,
}Expand description
A compiled HTTP action (method) on a model.
Fields§
§name: StringMethod name: “add_to_cart”, “search”, “checkout”, etc.
belongs_to: StringWhich model this action belongs to: “Product”, “Cart”, “Site”.
is_instance_method: boolTrue if this action requires a specific node (instance method).
http_method: StringHTTP method: “GET”, “POST”, etc.
endpoint_template: StringURL endpoint template: “/cart/add.js”, “/s?k={query}”.
params: Vec<ActionParam>Parameters for this action.
requires_auth: boolWhether authentication is required.
execution_path: StringExecution path: “http”, “websocket”, “webmcp”, “browser”.
confidence: f32Confidence in the compiled action (0.0-1.0).
Trait Implementations§
Source§impl Clone for CompiledAction
impl Clone for CompiledAction
Source§fn clone(&self) -> CompiledAction
fn clone(&self) -> CompiledAction
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 CompiledAction
impl Debug for CompiledAction
Source§impl<'de> Deserialize<'de> for CompiledAction
impl<'de> Deserialize<'de> for CompiledAction
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 CompiledAction
impl RefUnwindSafe for CompiledAction
impl Send for CompiledAction
impl Sync for CompiledAction
impl Unpin for CompiledAction
impl UnsafeUnpin for CompiledAction
impl UnwindSafe for CompiledAction
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