[][src]Struct oai::Client

pub struct Client {
    pub inner: Arc<Client>,
    pub base_url: Url,
}

Fields

inner: Arc<Client>base_url: Url

Implementations

impl Client[src]

pub async fn get_record<'_, '_, T: Format>(
    &'_ self,
    identifier: &'_ str
) -> Result<GetRecord<T, T::MetadataKind>>
[src]

impl Client[src]

pub async fn list_records<'_, T: Format>(
    &'_ self,
    params: Option<Params>
) -> Result<ListRecords<T, T::MetadataKind>>
[src]

pub async fn list_records_from_resumption_token<'_, T: Format>(
    &'_ self,
    resumption_token: String
) -> Result<ListRecords<T, T::MetadataKind>>
[src]

pub async fn list_records_all<'_, T: Format>(
    &'_ self,
    params: Option<Params>
) -> Result<ListRecords<T, T::MetadataKind>>
[src]

impl Client[src]

pub fn new<T: Borrow<str>>(url: T) -> Result<Self>[src]

Trait Implementations

impl Clone for Client[src]

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.