pub struct Document<'a, 'b> {
pub client: &'a Client,
pub service_sid: &'b str,
pub sid: &'b str,
}Fields§
§client: &'a Client§service_sid: &'b str§sid: &'b strSID of the Sync Document. Can also be the friendly name.
Implementations§
Source§impl Document<'_, '_>
impl Document<'_, '_>
Sourcepub async fn get(&self) -> Result<SyncDocument, TwilioError>
pub async fn get(&self) -> Result<SyncDocument, TwilioError>
Targets the Sync Service provided to the service() argument and fetches the Document
provided to the document() argument.
Sourcepub async fn update<T>(
&self,
params: UpdateParams<'_, T>,
) -> Result<SyncDocument, TwilioError>
pub async fn update<T>( &self, params: UpdateParams<'_, T>, ) -> Result<SyncDocument, TwilioError>
Targets the Sync Service provided to the service() argument and updates the Document
provided to the document() argument.
Sourcepub async fn delete(&self) -> Result<(), TwilioError>
pub async fn delete(&self) -> Result<(), TwilioError>
Targets the Sync Service provided to the service() argument and deletes the Document
provided to the document() argument.
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for Document<'a, 'b>
impl<'a, 'b> !UnwindSafe for Document<'a, 'b>
impl<'a, 'b> Freeze for Document<'a, 'b>
impl<'a, 'b> Send for Document<'a, 'b>
impl<'a, 'b> Sync for Document<'a, 'b>
impl<'a, 'b> Unpin for Document<'a, 'b>
impl<'a, 'b> UnsafeUnpin for Document<'a, 'b>
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