pub struct UpdateConfig {
pub check_on_start: bool,
pub channel: String,
pub registry_url: String,
pub registries: Vec<RegistrySource>,
}Fields§
§check_on_start: bool§channel: String§registry_url: StringLegacy single-registry URL. Kept for backward compatibility.
If registries is empty and this is set, resolve_registries() synthesizes
a single RegistrySource from it.
registries: Vec<RegistrySource>Multi-registry support: ordered list of skill registries to sync from. Higher-priority registries win on name collision.
Implementations§
Source§impl UpdateConfig
impl UpdateConfig
Sourcepub fn resolve_registries(&self) -> Vec<RegistrySource>
pub fn resolve_registries(&self) -> Vec<RegistrySource>
Resolve the effective list of registries. If explicit registries is
non-empty, returns those. Otherwise, falls back to the legacy
registry_url field wrapped in a single RegistrySource.
Trait Implementations§
Source§impl Clone for UpdateConfig
impl Clone for UpdateConfig
Source§fn clone(&self) -> UpdateConfig
fn clone(&self) -> UpdateConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 UpdateConfig
impl Debug for UpdateConfig
Source§impl Default for UpdateConfig
impl Default for UpdateConfig
Source§impl<'de> Deserialize<'de> for UpdateConfig
impl<'de> Deserialize<'de> for UpdateConfig
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 UpdateConfig
impl RefUnwindSafe for UpdateConfig
impl Send for UpdateConfig
impl Sync for UpdateConfig
impl Unpin for UpdateConfig
impl UnsafeUnpin for UpdateConfig
impl UnwindSafe for UpdateConfig
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