pub struct OversyncClient { /* private fields */ }Implementations§
Source§impl OversyncClient
impl OversyncClient
pub fn builder(base_url: impl Into<String>) -> OversyncClientBuilder
pub fn new( base_url: impl Into<String>, ) -> Result<Self, OversyncClientBuildError>
pub fn with_api_key( base_url: impl Into<String>, api_key: impl Into<String>, ) -> Result<Self, OversyncClientBuildError>
pub fn base_url(&self) -> &str
pub fn generated(&self) -> &GeneratedClient
pub async fn health(&self) -> Result<HealthResponse, OversyncClientError>
pub async fn list_sinks(&self) -> Result<SinkListResponse, OversyncClientError>
pub async fn get_sink( &self, name: &str, ) -> Result<SinkInfo, OversyncClientError>
pub async fn create_sink( &self, request: &CreateSinkRequest, ) -> Result<MutationResponse, OversyncClientError>
pub async fn update_sink( &self, name: &str, request: &UpdateSinkRequest, ) -> Result<MutationResponse, OversyncClientError>
pub async fn delete_sink( &self, name: &str, ) -> Result<MutationResponse, OversyncClientError>
pub async fn list_pipes(&self) -> Result<PipeListResponse, OversyncClientError>
pub async fn get_pipe( &self, name: &str, ) -> Result<PipeInfo, OversyncClientError>
pub async fn create_pipe( &self, request: &CreatePipeRequest, ) -> Result<MutationResponse, OversyncClientError>
pub async fn update_pipe( &self, name: &str, request: &UpdatePipeRequest, ) -> Result<MutationResponse, OversyncClientError>
pub async fn delete_pipe( &self, name: &str, ) -> Result<MutationResponse, OversyncClientError>
pub async fn run_pipe( &self, name: &str, ) -> Result<PipeRunResponse, OversyncClientError>
pub async fn list_pipe_presets( &self, ) -> Result<PipePresetListResponse, OversyncClientError>
pub async fn get_pipe_preset( &self, name: &str, ) -> Result<PipePresetInfo, OversyncClientError>
pub async fn create_pipe_preset( &self, request: &CreatePipePresetRequest, ) -> Result<MutationResponse, OversyncClientError>
pub async fn update_pipe_preset( &self, name: &str, request: &UpdatePipePresetRequest, ) -> Result<MutationResponse, OversyncClientError>
pub async fn delete_pipe_preset( &self, name: &str, ) -> Result<MutationResponse, OversyncClientError>
pub async fn pause_sync(&self) -> Result<MutationResponse, OversyncClientError>
pub async fn resume_sync(&self) -> Result<MutationResponse, OversyncClientError>
pub async fn sync_status(&self) -> Result<StatusResponse, OversyncClientError>
pub async fn history(&self) -> Result<HistoryResponse, OversyncClientError>
pub async fn export_config( &self, format: ExportConfigFormat, ) -> Result<ExportConfigResponse, OversyncClientError>
pub async fn import_config( &self, request: &ImportConfigRequest, ) -> Result<ImportConfigResponse, OversyncClientError>
pub async fn list_credentials( &self, ) -> Result<CredentialListResponse, OversyncClientError>
pub async fn create_credential( &self, request: &CreateCredentialRequest, ) -> Result<MutationResponse, OversyncClientError>
pub async fn delete_credential( &self, name: &str, ) -> Result<MutationResponse, OversyncClientError>
Trait Implementations§
Source§impl Clone for OversyncClient
impl Clone for OversyncClient
Source§fn clone(&self) -> OversyncClient
fn clone(&self) -> OversyncClient
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for OversyncClient
impl !RefUnwindSafe for OversyncClient
impl Send for OversyncClient
impl Sync for OversyncClient
impl Unpin for OversyncClient
impl UnsafeUnpin for OversyncClient
impl !UnwindSafe for OversyncClient
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