pub struct AgentSurfaceSpec { /* private fields */ }Expand description
Declarative capability surface for a tool.
Implementations§
Source§impl AgentSurfaceSpec
impl AgentSurfaceSpec
Sourcepub const fn new(capabilities: &'static [AgentCapability]) -> AgentSurfaceSpec
pub const fn new(capabilities: &'static [AgentCapability]) -> AgentSurfaceSpec
Create a new AgentSurfaceSpec.
Sourcepub const fn capabilities(&self) -> &'static [AgentCapability]
pub const fn capabilities(&self) -> &'static [AgentCapability]
Return the capabilities in this surface.
Trait Implementations§
Source§impl Clone for AgentSurfaceSpec
impl Clone for AgentSurfaceSpec
Source§fn clone(&self) -> AgentSurfaceSpec
fn clone(&self) -> AgentSurfaceSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AgentSurfaceSpec
Source§impl Debug for AgentSurfaceSpec
impl Debug for AgentSurfaceSpec
impl Eq for AgentSurfaceSpec
Source§impl PartialEq for AgentSurfaceSpec
impl PartialEq for AgentSurfaceSpec
Source§fn eq(&self, other: &AgentSurfaceSpec) -> bool
fn eq(&self, other: &AgentSurfaceSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AgentSurfaceSpec
Auto Trait Implementations§
impl Freeze for AgentSurfaceSpec
impl RefUnwindSafe for AgentSurfaceSpec
impl Send for AgentSurfaceSpec
impl Sync for AgentSurfaceSpec
impl Unpin for AgentSurfaceSpec
impl UnsafeUnpin for AgentSurfaceSpec
impl UnwindSafe for AgentSurfaceSpec
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