pub struct TeamMemberSpec {
pub name: String,
pub description: Option<String>,
pub required_capabilities: Vec<String>,
pub registry: TeamRegistryRequirement,
}Expand description
Serializable metadata for one team member.
Fields§
§name: StringName used to bind the member to an Agent.
description: Option<String>Optional portable description for design tools and documentation.
required_capabilities: Vec<String>Capabilities a discovered binding must provide.
registry: TeamRegistryRequirementRegistry trust, version, and integrity constraints for this member.
Implementations§
Source§impl TeamMemberSpec
impl TeamMemberSpec
Sourcepub fn with_description(self, description: impl Into<String>) -> Self
pub fn with_description(self, description: impl Into<String>) -> Self
Adds a portable description.
Sourcepub fn with_capabilities(
self,
capabilities: impl IntoIterator<Item = impl Into<String>>,
) -> Self
pub fn with_capabilities( self, capabilities: impl IntoIterator<Item = impl Into<String>>, ) -> Self
Requires all named capabilities when resolving this member dynamically.
Sourcepub fn with_registry_requirement(
self,
requirement: TeamRegistryRequirement,
) -> Self
pub fn with_registry_requirement( self, requirement: TeamRegistryRequirement, ) -> Self
Applies discovery-time trust and integrity constraints.
Trait Implementations§
Source§impl Clone for TeamMemberSpec
impl Clone for TeamMemberSpec
Source§fn clone(&self) -> TeamMemberSpec
fn clone(&self) -> TeamMemberSpec
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 TeamMemberSpec
impl Debug for TeamMemberSpec
Source§impl<'de> Deserialize<'de> for TeamMemberSpec
impl<'de> Deserialize<'de> for TeamMemberSpec
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 TeamMemberSpec
Source§impl JsonSchema for TeamMemberSpec
impl JsonSchema for TeamMemberSpec
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for TeamMemberSpec
impl PartialEq for TeamMemberSpec
Source§impl Serialize for TeamMemberSpec
impl Serialize for TeamMemberSpec
impl StructuralPartialEq for TeamMemberSpec
Auto Trait Implementations§
impl Freeze for TeamMemberSpec
impl RefUnwindSafe for TeamMemberSpec
impl Send for TeamMemberSpec
impl Sync for TeamMemberSpec
impl Unpin for TeamMemberSpec
impl UnsafeUnpin for TeamMemberSpec
impl UnwindSafe for TeamMemberSpec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.