pub struct Client { /* private fields */ }Expand description
An unauthenticated Artifactory client.
Implementations§
Source§impl Client
impl Client
Sourcepub fn new<S: AsRef<str>>(origin: S) -> Self
pub fn new<S: AsRef<str>>(origin: S) -> Self
Create a new client without any authentication.
This can be used for read-only access of artifacts.
Sourcepub async fn file_info(&self, path: ArtifactoryPath) -> Result<FileInfo, Error>
pub async fn file_info(&self, path: ArtifactoryPath) -> Result<FileInfo, Error>
Fetch metadata about a remote artifact.
Sourcepub async fn pull<F>(
&self,
path: ArtifactoryPath,
dest: &Path,
progress: F,
) -> Result<(), Error>where
F: FnMut(DownloadProgress),
pub async fn pull<F>(
&self,
path: ArtifactoryPath,
dest: &Path,
progress: F,
) -> Result<(), Error>where
F: FnMut(DownloadProgress),
Fetch a remote artifact.
An optional progress closure can be provided to get updates on the transfer.
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
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