pub struct RabelClient { /* private fields */ }Implementations§
Source§impl RabelClient
impl RabelClient
pub fn new() -> Result<Self, Error>
pub fn for_subcatalog(subcatalog: &str) -> Result<Self, RabelError>
Sourcepub async fn search_raw(&self, query: &str) -> Result<String, RabelError>
pub async fn search_raw(&self, query: &str) -> Result<String, RabelError>
Return the raw HTML search response, useful for diagnostics and parser fixtures.
Sourcepub async fn get_item_raw(&self, record_ref: &str) -> Result<String, RabelError>
pub async fn get_item_raw(&self, record_ref: &str) -> Result<String, RabelError>
Return the raw HTML record response after validating its session-scoped reference.
pub async fn search( &self, query: &str, limit: usize, ) -> Result<Vec<CatalogueSearchResult>, RabelError>
pub async fn get_item( &self, record_ref: &str, ) -> Result<CatalogueItem, RabelError>
Sourcepub async fn get_holdings(
&self,
record_ref: &str,
) -> Result<CatalogueHoldings, RabelError>
pub async fn get_holdings( &self, record_ref: &str, ) -> Result<CatalogueHoldings, RabelError>
Fetch live copy-level availability separately from bibliographic data.
pub async fn libraries(&self) -> Result<Vec<Library>, RabelError>
Auto Trait Implementations§
impl !RefUnwindSafe for RabelClient
impl !UnwindSafe for RabelClient
impl Freeze for RabelClient
impl Send for RabelClient
impl Sync for RabelClient
impl Unpin for RabelClient
impl UnsafeUnpin for RabelClient
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