pub struct GcsSkillSource {
pub skills: Vec<SkillMeta>,
pub files: HashMap<(String, String), Vec<u8>>,
}Expand description
Skills loaded from a GCS bucket, with all files cached in memory.
Fields§
§skills: Vec<SkillMeta>Parsed skill metadata.
files: HashMap<(String, String), Vec<u8>>All files keyed by (skill_name, relative_path).
Implementations§
Source§impl GcsSkillSource
impl GcsSkillSource
Sourcepub async fn load(client: &GcsClient) -> Result<Self, GcsError>
pub async fn load(client: &GcsClient) -> Result<Self, GcsError>
Load all skills from a GCS bucket concurrently.
Enumerates top-level “directories” as skill names, then fetches all files in each skill directory with bounded concurrency.
Sourcepub fn skill_count(&self) -> usize
pub fn skill_count(&self) -> usize
Number of skills loaded.
Auto Trait Implementations§
impl Freeze for GcsSkillSource
impl RefUnwindSafe for GcsSkillSource
impl Send for GcsSkillSource
impl Sync for GcsSkillSource
impl Unpin for GcsSkillSource
impl UnsafeUnpin for GcsSkillSource
impl UnwindSafe for GcsSkillSource
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