pub struct ActionDoc {Show 13 fields
pub service: String,
pub action: String,
pub description: String,
pub destructive: bool,
pub requires_admin: bool,
pub cost: String,
pub required_scope: Option<String>,
pub params: Vec<ParamDoc>,
pub returns: String,
pub surface_availability: SurfaceAvailability,
pub auth_posture: String,
pub mcp_only_exception: Option<String>,
pub cli: Option<CliDoc>,
}Expand description
Serializable, catalog-facing documentation for a single action.
Fields§
§service: StringOwning service name (always "soma").
action: StringAction name.
description: StringHuman-readable description of the action.
destructive: boolWhether the action is destructive.
requires_admin: boolWhether the action requires admin privileges.
cost: StringAdvertised cost tier label.
required_scope: Option<String>Scope required to invoke the action, or None if public.
params: Vec<ParamDoc>Parameter documentation.
returns: StringName of the returned result type.
surface_availability: SurfaceAvailabilityWhich surfaces expose the action.
auth_posture: StringHuman-readable summary of the action’s auth requirements.
mcp_only_exception: Option<String>Explanation of why the action is MCP-only, when applicable.
cli: Option<CliDoc>CLI documentation for the action, if it has a CLI surface.
Trait Implementations§
impl Eq for ActionDoc
impl StructuralPartialEq for ActionDoc
Auto Trait Implementations§
impl Freeze for ActionDoc
impl RefUnwindSafe for ActionDoc
impl Send for ActionDoc
impl Sync for ActionDoc
impl Unpin for ActionDoc
impl UnsafeUnpin for ActionDoc
impl UnwindSafe for ActionDoc
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.