pub struct WasapiClient { /* private fields */ }Implementations§
Source§impl WasapiClient
impl WasapiClient
pub fn new( username: impl Into<String>, password: impl Into<String>, ) -> Result<Self, Error>
pub fn with_config( username: impl Into<String>, password: impl Into<String>, cfg: Config, ) -> Result<Self, Error>
pub fn with_primary_location_src(self, src: impl Into<String>) -> Self
pub fn download( &self, file: WasapiFile, path: impl AsRef<Path>, ) -> impl Stream<Item = DownloadOutcome> + Send + '_
pub fn download_collection( &self, query: WebdataQuery, dir: impl Into<PathBuf>, ) -> impl Stream<Item = DownloadOutcome> + Send + '_
pub fn download_to_s3( &self, file: WasapiFile, s3: AwsS3Client, bucket: impl Into<String>, prefix: Option<String>, ) -> impl Stream<Item = DownloadOutcome<S3Location>> + Send + '_
pub fn download_collection_to_s3( &self, query: WebdataQuery, s3: AwsS3Client, bucket: impl Into<String>, prefix: Option<String>, ) -> impl Stream<Item = DownloadOutcome<S3Location>> + Send + '_
pub async fn list_webdata( &self, query: &WebdataQuery, ) -> Result<Page<WasapiFile>, Error>
pub async fn list_webdata_next( &self, prev: &Page<WasapiFile>, ) -> Result<Option<Page<WasapiFile>>, Error>
pub fn primary_location<'a>(&self, file: &'a WasapiFile) -> Option<&'a str>
pub fn webdata( &self, query: WebdataQuery, ) -> impl Stream<Item = Result<WasapiFile, Error>> + Send + '_
Auto Trait Implementations§
impl !RefUnwindSafe for WasapiClient
impl !UnwindSafe for WasapiClient
impl Freeze for WasapiClient
impl Send for WasapiClient
impl Sync for WasapiClient
impl Unpin for WasapiClient
impl UnsafeUnpin for WasapiClient
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.