Struct SkillBundleSource
pub struct SkillBundleSource {
pub alias: String,
pub source: PathBuf,
pub relative: PathBuf,
pub filter: SkillBundleConfig,
}Expand description
One skill bundle’s content to carry, resolved to a source directory.
The planner performs no I/O, so this names the directory and the filter rather than the skills themselves; the caller enumerates and copies.
Fields§
§alias: StringBundle alias. Also the subdirectory name under SKILLS_DIR, which is
what lets an import map content back onto the target’s own resolved
directory for the same alias.
source: PathBufAbsolute source directory on the exporting host, for messages and overlap checks.
relative: PathBufThe same directory as a lexically-normalized path relative to the
install root. Always under shared/: the planner validates the
skill-bundle directory contract before planning a source. The copy
opens the directory by walking these components no-follow from the
install root, so the path the planner validated is the path the copy
proves.
filter: SkillBundleConfigThe bundle’s own include/exclude filter. Applied to the copy so a skill
this bundle excludes does not travel: SkillBundleConfig::admits_skill
is the same filter the runtime applies.
Trait Implementations§
Source§impl Clone for SkillBundleSource
impl Clone for SkillBundleSource
Source§fn clone(&self) -> SkillBundleSource
fn clone(&self) -> SkillBundleSource
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for SkillBundleSource
impl RefUnwindSafe for SkillBundleSource
impl Send for SkillBundleSource
impl Sync for SkillBundleSource
impl Unpin for SkillBundleSource
impl UnsafeUnpin for SkillBundleSource
impl UnwindSafe for SkillBundleSource
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
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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