pub struct AgentDistribution {
pub binary: Option<BinaryDistribution>,
pub npx: Option<NpxDistribution>,
pub uvx: Option<UvxDistribution>,
}Expand description
Distribution channels that may be published for an agent.
Fields§
§binary: Option<BinaryDistribution>Platform-specific binaries that can be downloaded and executed directly.
npx: Option<NpxDistribution>npx package metadata when the agent ships as an npm package.
uvx: Option<UvxDistribution>uvx package metadata for uv installed agents.
Implementations§
Source§impl AgentDistribution
impl AgentDistribution
Sourcepub fn has_distribution_source(&self) -> bool
pub fn has_distribution_source(&self) -> bool
Returns true if the agent references at least one install/run source.
Trait Implementations§
Source§impl Clone for AgentDistribution
impl Clone for AgentDistribution
Source§fn clone(&self) -> AgentDistribution
fn clone(&self) -> AgentDistribution
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 AgentDistribution
impl Debug for AgentDistribution
Source§impl Default for AgentDistribution
impl Default for AgentDistribution
Source§fn default() -> AgentDistribution
fn default() -> AgentDistribution
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentDistribution
impl<'de> Deserialize<'de> for AgentDistribution
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
Source§impl PartialEq for AgentDistribution
impl PartialEq for AgentDistribution
Source§impl Serialize for AgentDistribution
impl Serialize for AgentDistribution
impl Eq for AgentDistribution
impl StructuralPartialEq for AgentDistribution
Auto Trait Implementations§
impl Freeze for AgentDistribution
impl RefUnwindSafe for AgentDistribution
impl Send for AgentDistribution
impl Sync for AgentDistribution
impl Unpin for AgentDistribution
impl UnsafeUnpin for AgentDistribution
impl UnwindSafe for AgentDistribution
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.