pub struct LashlangToolBinding {
pub module_path: Vec<String>,
pub operation: Option<String>,
pub authority_type: Option<String>,
pub aliases: Vec<String>,
}Fields§
§module_path: Vec<String>§operation: Option<String>§aliases: Vec<String>Implementations§
Source§impl LashlangToolBinding
impl LashlangToolBinding
pub fn new( module_path: impl IntoIterator<Item = impl Into<String>>, operation: impl Into<String>, ) -> LashlangToolBinding
pub fn with_aliases( self, aliases: impl IntoIterator<Item = impl Into<String>>, ) -> LashlangToolBinding
pub fn executable_for(&self, tool_name: &str) -> ResolvedLashlangToolBinding
Sourcepub fn required_for_remote(
manifest: &ToolManifest,
) -> Result<ResolvedLashlangToolBinding, String>
pub fn required_for_remote( manifest: &ToolManifest, ) -> Result<ResolvedLashlangToolBinding, String>
Resolve a remote-callable surface without applying local prompt fallbacks.
Remote hosts must provide an explicit module path and operation so
serialized tool grants have one canonical call path. This deliberately
rejects the prompt-only conveniences used by Self::executable_for,
where an empty module path falls back to tools and an empty operation
falls back to the flat tool name.
pub fn required_executable_for_remote( &self, tool_name: &str, ) -> Result<ResolvedLashlangToolBinding, String>
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for LashlangToolBinding
impl Clone for LashlangToolBinding
Source§fn clone(&self) -> LashlangToolBinding
fn clone(&self) -> LashlangToolBinding
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 LashlangToolBinding
impl Debug for LashlangToolBinding
Source§impl Default for LashlangToolBinding
impl Default for LashlangToolBinding
Source§fn default() -> LashlangToolBinding
fn default() -> LashlangToolBinding
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LashlangToolBinding
impl<'de> Deserialize<'de> for LashlangToolBinding
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LashlangToolBinding, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LashlangToolBinding, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LashlangToolBinding
Source§impl PartialEq for LashlangToolBinding
impl PartialEq for LashlangToolBinding
Source§fn eq(&self, other: &LashlangToolBinding) -> bool
fn eq(&self, other: &LashlangToolBinding) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LashlangToolBinding
impl Serialize for LashlangToolBinding
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LashlangToolBinding
Auto Trait Implementations§
impl Freeze for LashlangToolBinding
impl RefUnwindSafe for LashlangToolBinding
impl Send for LashlangToolBinding
impl Sync for LashlangToolBinding
impl Unpin for LashlangToolBinding
impl UnsafeUnpin for LashlangToolBinding
impl UnwindSafe for LashlangToolBinding
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