pub struct GameDbClient { /* private fields */ }Expand description
Client for the Origin GameDB knowledge graph service.
Implementations§
Source§impl GameDbClient
impl GameDbClient
Sourcepub fn builder(token: impl Into<String>) -> GameDbClientBuilder
pub fn builder(token: impl Into<String>) -> GameDbClientBuilder
Create a builder for fine-grained configuration.
pub fn from_transport(transport: HttpTransport) -> Self
pub async fn health(&self) -> Result<bool>
pub async fn health_detailed(&self) -> Result<Value>
pub async fn datasets(&self) -> Result<Value>
pub async fn create_dataset(&self, name: &str) -> Result<Value>
pub async fn delete_dataset(&self, id: &str) -> Result<Value>
pub async fn delete_all_datasets(&self) -> Result<Value>
pub async fn dataset_status(&self) -> Result<Value>
pub async fn dataset_graph(&self, id: &str) -> Result<Value>
pub async fn dataset_data(&self, id: &str) -> Result<Value>
pub async fn delete_data( &self, dataset_id: &str, data_id: &str, ) -> Result<Value>
pub async fn add_text(&self, dataset_name: &str, content: &str) -> Result<Value>
pub async fn add_file( &self, dataset_name: &str, file_path: &str, ) -> Result<Value>
pub async fn cognify(&self, options: &CognifyOptions) -> Result<Value>
pub async fn search( &self, query: &str, options: Option<SearchOptions>, ) -> Result<Value>
pub async fn search_history(&self) -> Result<Value>
pub async fn settings(&self) -> Result<Value>
pub async fn save_settings(&self, settings: &Value) -> Result<Value>
pub async fn ontologies(&self) -> Result<Value>
Trait Implementations§
Source§impl Clone for GameDbClient
impl Clone for GameDbClient
Source§fn clone(&self) -> GameDbClient
fn clone(&self) -> GameDbClient
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 GameDbClient
impl !UnwindSafe for GameDbClient
impl Freeze for GameDbClient
impl Send for GameDbClient
impl Sync for GameDbClient
impl Unpin for GameDbClient
impl UnsafeUnpin for GameDbClient
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