pub struct OperationsApiClient { /* private fields */ }
Implementations§
Source§impl OperationsApiClient
impl OperationsApiClient
pub fn new(configuration: Arc<Configuration>) -> Self
Trait Implementations§
Source§impl OperationsApi for OperationsApiClient
impl OperationsApi for OperationsApiClient
Source§fn retrieve_api_stats<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ApiStatsResponse, Error<RetrieveApiStatsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn retrieve_api_stats<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ApiStatsResponse, Error<RetrieveApiStatsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieve the stats about API endpoints.
Source§fn retrieve_metrics<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Value, Error<RetrieveMetricsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn retrieve_metrics<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Value, Error<RetrieveMetricsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Retrieve the metrics.
Source§fn take_snapshot<'life0, 'async_trait>(
&'life0 self,
params: TakeSnapshotParams,
) -> Pin<Box<dyn Future<Output = Result<SuccessStatus, Error<TakeSnapshotError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn take_snapshot<'life0, 'async_trait>(
&'life0 self,
params: TakeSnapshotParams,
) -> Pin<Box<dyn Future<Output = Result<SuccessStatus, Error<TakeSnapshotError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Creates a point-in-time snapshot of a Typesense node’s state and data in the specified directory. You can then backup the snapshot directory that gets created and later restore it as a data directory, as needed.
Source§fn vote<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<SuccessStatus, Error<VoteError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn vote<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<SuccessStatus, Error<VoteError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Triggers a follower node to initiate the raft voting process, which triggers leader re-election. The follower node that you run this operation against will become the new leader, once this command succeeds.
Auto Trait Implementations§
impl Freeze for OperationsApiClient
impl !RefUnwindSafe for OperationsApiClient
impl Send for OperationsApiClient
impl Sync for OperationsApiClient
impl Unpin for OperationsApiClient
impl !UnwindSafe for OperationsApiClient
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