[][src]Struct artifactory_web_api::Client

pub struct Client { /* fields omitted */ }

An unauthenticated Artifactory client.

Implementations

impl Client[src]

pub fn new<S: AsRef<str>>(origin: S) -> Self[src]

Create a new client without any authentication.

This can be used for read-only access of artifacts.

pub async fn file_info<'_>(
    &'_ self,
    path: ArtifactoryPath
) -> Result<FileInfo, Error>
[src]

Fetch metadata about a remote artifact.

pub async fn pull<F, '_, '_>(
    &'_ self,
    path: ArtifactoryPath,
    dest: &'_ Path,
    progress: F
) -> Result<(), Error> where
    F: FnMut(DownloadProgress), 
[src]

Fetch a remote artifact.

An optional progress closure can be provided to get updates on the transfer.

Auto Trait Implementations

impl RefUnwindSafe for Client

impl Send for Client

impl Sync for Client

impl Unpin for Client

impl UnwindSafe for Client

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.