pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn builder() -> ClientBuilder<()>
Sourcepub async fn get_document(&self, id: &str) -> Result<Document>
pub async fn get_document(&self, id: &str) -> Result<Document>
Get a document.
Sourcepub async fn create_document(
&self,
request: CreateDocumentRequest,
) -> Result<Document>
pub async fn create_document( &self, request: CreateDocumentRequest, ) -> Result<Document>
Create a document.
Sourcepub async fn batch_update(
&self,
id: &str,
request: BatchUpdateRequest,
) -> Result<BatchUpdateResponse>
pub async fn batch_update( &self, id: &str, request: BatchUpdateRequest, ) -> Result<BatchUpdateResponse>
Batch update a document.
Sourcepub async fn insert_text(
&self,
id: &str,
index: i32,
text: &str,
) -> Result<BatchUpdateResponse>
pub async fn insert_text( &self, id: &str, index: i32, text: &str, ) -> Result<BatchUpdateResponse>
Insert text at a specific index.
Sourcepub async fn delete_content(
&self,
id: &str,
start: i32,
end: i32,
) -> Result<BatchUpdateResponse>
pub async fn delete_content( &self, id: &str, start: i32, end: i32, ) -> Result<BatchUpdateResponse>
Delete content in a range.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
impl Freeze for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
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