pub struct McpAddress(pub String);Expand description
An address expression string, evaluated against the call’s binary view with
McpAddress::resolve.
Tuple Fields§
§0: StringImplementations§
Source§impl McpAddress
impl McpAddress
Sourcepub fn resolve(&self, call: &McpToolCall) -> Result<u64, McpToolError>
pub fn resolve(&self, call: &McpToolCall) -> Result<u64, McpToolError>
An invalid expression is an invalid_params error.
Trait Implementations§
Source§impl Clone for McpAddress
impl Clone for McpAddress
Source§fn clone(&self) -> McpAddress
fn clone(&self) -> McpAddress
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 moreSource§impl Debug for McpAddress
impl Debug for McpAddress
Source§impl<'de> Deserialize<'de> for McpAddress
impl<'de> Deserialize<'de> for McpAddress
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
impl Eq for McpAddress
Source§impl PartialEq for McpAddress
impl PartialEq for McpAddress
Source§fn eq(&self, other: &McpAddress) -> bool
fn eq(&self, other: &McpAddress) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for McpAddress
Auto Trait Implementations§
impl Freeze for McpAddress
impl RefUnwindSafe for McpAddress
impl Send for McpAddress
impl Sync for McpAddress
impl Unpin for McpAddress
impl UnsafeUnpin for McpAddress
impl UnwindSafe for McpAddress
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