pub struct ServiceClient { /* private fields */ }Implementations§
Source§impl ServiceClient
impl ServiceClient
pub async fn get_collection_search_capabilities( &self, id: &str, ) -> Result<SearchCapabilityCatalog, AgentError>
pub async fn get_offering_search_capabilities( &self, collection_id: Option<&str>, ) -> Result<SearchCapabilityCatalog, AgentError>
Source§impl ServiceClient
impl ServiceClient
pub fn new(service_url: &str) -> Result<Self, AgentError>
pub fn with_transport( service_url: &str, transport: Arc<dyn Transport>, ) -> Result<Self, AgentError>
pub fn with_accept_language(self, language: impl Into<String>) -> Self
pub fn with_cache(self, cache: Arc<dyn Cache>) -> Self
pub fn with_cache_fallbacks(self, fallbacks: CacheFallbacks) -> Self
pub fn with_cache_partition(self, partition: impl Into<String>) -> Self
pub fn with_supporting_transport(self, transport: Arc<dyn Transport>) -> Self
pub async fn inspect(&self) -> Result<Inspection, AgentError>
pub async fn list_collections( &self, representation: Representation, limit: usize, ) -> Result<Page<Collection>, AgentError>
pub async fn get_collection(&self, id: &str) -> Result<Collection, AgentError>
pub async fn search_collections( &self, request: &CollectionSearchRequest, representation: Representation, ) -> Result<Page<Collection>, AgentError>
pub async fn list_offerings( &self, representation: Representation, limit: usize, ) -> Result<OfferingPage<Offering>, AgentError>
pub async fn list_collection_offerings( &self, collection_id: &str, representation: Representation, limit: usize, ) -> Result<OfferingPage<Offering>, AgentError>
pub async fn get_offering(&self, id: &str) -> Result<Offering, AgentError>
pub async fn search_offerings( &self, request: &OfferingSearchRequest, representation: Representation, ) -> Result<OfferingPage<Offering>, AgentError>
pub async fn continue_collections( &self, next: &str, ) -> Result<Page<Collection>, AgentError>
pub async fn continue_offerings( &self, next: &str, ) -> Result<OfferingPage<Offering>, AgentError>
pub async fn list_all_collections( &self, representation: Representation, limit: usize, options: TraversalOptions, ) -> Result<Vec<Collection>, AgentError>
pub async fn list_all_offerings( &self, representation: Representation, limit: usize, options: TraversalOptions, ) -> Result<Vec<Offering>, AgentError>
pub async fn search_all_offerings( &self, request: &OfferingSearchRequest, representation: Representation, options: TraversalOptions, ) -> Result<Vec<Offering>, AgentError>
Source§impl ServiceClient
impl ServiceClient
pub async fn get_offering_details( &self, id: &str, ) -> Result<OfferingDetails, AgentError>
pub async fn resolve_action( &self, offering_id: &str, action_id: &str, ) -> Result<ResolvedAction, AgentError>
Trait Implementations§
Source§impl Clone for ServiceClient
impl Clone for ServiceClient
Source§fn clone(&self) -> ServiceClient
fn clone(&self) -> ServiceClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ServiceClient
impl !UnwindSafe for ServiceClient
impl Freeze for ServiceClient
impl Send for ServiceClient
impl Sync for ServiceClient
impl Unpin for ServiceClient
impl UnsafeUnpin for ServiceClient
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