pub struct IndexSource {
pub source: String,
pub namespace: Option<String>,
pub tags: Vec<String>,
}Fields§
§source: String§namespace: Option<String>Optional explicit namespace override for skills materialised
from this source. When set, all skills walked under this
source’s tree get scoped as <namespace>/<skill-name>. When
omitted, knack-registry derives a namespace from the source
URL itself (typically the gh:owner segment). The override
matters for cases like gh:ajac-zero/knack/skills where the
owner segment (“ajac-zero”) isn’t the brand we want users to
install under (“knack”). Same kebab-case rules as skill names.
Implementations§
Trait Implementations§
Source§impl Clone for IndexSource
impl Clone for IndexSource
Source§fn clone(&self) -> IndexSource
fn clone(&self) -> IndexSource
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 IndexSource
impl Debug for IndexSource
Source§impl<'de> Deserialize<'de> for IndexSource
impl<'de> Deserialize<'de> for IndexSource
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
Auto Trait Implementations§
impl Freeze for IndexSource
impl RefUnwindSafe for IndexSource
impl Send for IndexSource
impl Sync for IndexSource
impl Unpin for IndexSource
impl UnsafeUnpin for IndexSource
impl UnwindSafe for IndexSource
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