pub struct AcpAgentEntry {
pub id: String,
pub name: String,
pub version: String,
pub description: String,
pub icon: Option<String>,
pub homepage: Option<String>,
pub repository: Option<String>,
pub authors: Vec<String>,
pub license: Option<String>,
pub distribution: AcpDistribution,
}Expand description
An agent entry in the registry.
Fields§
§id: String§name: String§version: String§description: String§icon: Option<String>§homepage: Option<String>§repository: Option<String>§license: Option<String>§distribution: AcpDistributionImplementations§
Source§impl AcpAgentEntry
impl AcpAgentEntry
Sourcepub fn dist_type(&self) -> Option<DistributionType>
pub fn dist_type(&self) -> Option<DistributionType>
Get the distribution type for this agent.
Sourcepub fn get_command(
&self,
binary_path: Option<&str>,
) -> Option<(String, Vec<String>)>
pub fn get_command( &self, binary_path: Option<&str>, ) -> Option<(String, Vec<String>)>
Get the command to run this agent.
Sourcepub fn has_binary_for_platform(&self, platform: &str) -> bool
pub fn has_binary_for_platform(&self, platform: &str) -> bool
Check if this agent has a binary for the current platform.
Sourcepub fn get_binary_info(&self, platform: &str) -> Option<&BinaryInfo>
pub fn get_binary_info(&self, platform: &str) -> Option<&BinaryInfo>
Get the binary info for a specific platform.
Sourcepub fn get_package(&self) -> Option<String>
pub fn get_package(&self) -> Option<String>
Get the package name for npx/uvx distributions.
Trait Implementations§
Source§impl Clone for AcpAgentEntry
impl Clone for AcpAgentEntry
Source§fn clone(&self) -> AcpAgentEntry
fn clone(&self) -> AcpAgentEntry
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 AcpAgentEntry
impl Debug for AcpAgentEntry
Source§impl<'de> Deserialize<'de> for AcpAgentEntry
impl<'de> Deserialize<'de> for AcpAgentEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AcpAgentEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AcpAgentEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AcpAgentEntry
impl Serialize for AcpAgentEntry
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
Auto Trait Implementations§
impl Freeze for AcpAgentEntry
impl RefUnwindSafe for AcpAgentEntry
impl Send for AcpAgentEntry
impl Sync for AcpAgentEntry
impl Unpin for AcpAgentEntry
impl UnsafeUnpin for AcpAgentEntry
impl UnwindSafe for AcpAgentEntry
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more