pub struct RegistryClient<T = DefaultRuntimeHttpTransport> { /* private fields */ }Implementations§
Source§impl<T: Transport> RegistryClient<T>
impl<T: Transport> RegistryClient<T>
pub fn with_transport( base_url: impl AsRef<str>, transport: T, ) -> Result<Self, RegistryClientError>
pub fn search( &self, query: &str, ) -> Result<Vec<RegistrySearchResult>, RegistryClientError>
pub fn search_with_limit( &self, query: &str, limit: usize, ) -> Result<Vec<RegistrySearchResult>, RegistryClientError>
pub fn read( &self, skill_id: &str, version: Option<&str>, ) -> Result<Option<RegistrySkillDetail>, RegistryClientError>
pub fn acquire( &self, skill_id: &str, options: AcquireOptions<'_>, ) -> Result<AcquiredRegistrySkill, RegistryClientError>
pub fn resolve_ref( &self, registry_ref: &str, version_override: Option<&str>, ) -> Result<Option<ResolvedRegistryRef>, RegistryResolveError>
Trait Implementations§
Source§impl<T: Clone> Clone for RegistryClient<T>
impl<T: Clone> Clone for RegistryClient<T>
Source§fn clone(&self) -> RegistryClient<T>
fn clone(&self) -> RegistryClient<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for RegistryClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for RegistryClient<T>where
T: RefUnwindSafe,
impl<T> Send for RegistryClient<T>where
T: Send,
impl<T> Sync for RegistryClient<T>where
T: Sync,
impl<T> Unpin for RegistryClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for RegistryClient<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for RegistryClient<T>where
T: UnwindSafe,
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