pub struct ComposerResource {
pub name: String,
pub description: String,
pub kind: ComposerResourceKind,
}Expand description
Bounded, non-secret discovery metadata; never executable content.
Fields§
§name: StringValidated resource name.
description: StringShort plain-text description.
kind: ComposerResourceKindWhich shared CLI discovery source owns this entry.
Implementations§
Source§impl ComposerResource
impl ComposerResource
Sourcepub fn is_valid_name(name: &str) -> bool
pub fn is_valid_name(name: &str) -> bool
Resource names are safe single tokens for explicit CLI skill mentions.
Trait Implementations§
Source§impl Clone for ComposerResource
impl Clone for ComposerResource
Source§impl Debug for ComposerResource
impl Debug for ComposerResource
Source§impl<'de> Deserialize<'de> for ComposerResource
impl<'de> Deserialize<'de> for ComposerResource
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 ComposerResource
Source§impl PartialEq for ComposerResource
impl PartialEq for ComposerResource
Source§impl Serialize for ComposerResource
impl Serialize for ComposerResource
impl StructuralPartialEq for ComposerResource
Auto Trait Implementations§
impl Freeze for ComposerResource
impl RefUnwindSafe for ComposerResource
impl Send for ComposerResource
impl Sync for ComposerResource
impl Unpin for ComposerResource
impl UnsafeUnpin for ComposerResource
impl UnwindSafe for ComposerResource
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,
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.