pub struct Map<'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 Map. Can also be it’s unique name.
Implementations§
Source§impl<'b> Map<'_, 'b>
impl<'b> Map<'_, 'b>
Sourcepub async fn get(&self) -> Result<SyncMap, TwilioError>
pub async fn get(&self) -> Result<SyncMap, TwilioError>
Targets the Sync Service provided to the service() argument and fetches the Map
provided to the map() argument.
Sourcepub async fn update(&self, params: UpdateParams) -> Result<SyncMap, TwilioError>
pub async fn update(&self, params: UpdateParams) -> Result<SyncMap, TwilioError>
Targets the Sync Service provided to the service() argument and updates the Map
provided to the map() 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 Map
provided to the map() argument.
This will delete any Sync Map items underneath this map.
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for Map<'a, 'b>
impl<'a, 'b> !UnwindSafe for Map<'a, 'b>
impl<'a, 'b> Freeze for Map<'a, 'b>
impl<'a, 'b> Send for Map<'a, 'b>
impl<'a, 'b> Sync for Map<'a, 'b>
impl<'a, 'b> Unpin for Map<'a, 'b>
impl<'a, 'b> UnsafeUnpin for Map<'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