pub struct LocationsApi { /* private fields */ }Implementations§
Source§impl LocationsApi
impl LocationsApi
pub fn new(http: Arc<HttpClient>) -> Self
pub async fn get(&self, location_id: &str) -> Result<GetLocationResponse>
pub async fn search( &self, params: &SearchLocationsParams, ) -> Result<SearchLocationsResponse>
pub async fn create( &self, params: &CreateLocationParams, ) -> Result<GetLocationResponse>
pub async fn update( &self, location_id: &str, params: &UpdateLocationParams, ) -> Result<GetLocationResponse>
pub async fn delete(&self, location_id: &str) -> Result<DeleteLocationResponse>
pub async fn get_custom_fields( &self, location_id: &str, ) -> Result<GetCustomFieldsResponse>
pub async fn get_custom_field( &self, location_id: &str, field_id: &str, ) -> Result<GetCustomFieldResponse>
pub async fn create_custom_field( &self, location_id: &str, params: &CreateCustomFieldParams, ) -> Result<GetCustomFieldResponse>
pub async fn update_custom_field( &self, location_id: &str, field_id: &str, params: &CreateCustomFieldParams, ) -> Result<GetCustomFieldResponse>
pub async fn delete_custom_field( &self, location_id: &str, field_id: &str, ) -> Result<()>
pub async fn get_tag( &self, location_id: &str, tag_id: &str, ) -> Result<GetTagResponse>
pub async fn create_tag( &self, location_id: &str, params: &CreateTagParams, ) -> Result<GetTagResponse>
pub async fn update_tag( &self, location_id: &str, tag_id: &str, params: &CreateTagParams, ) -> Result<GetTagResponse>
pub async fn delete_tag(&self, location_id: &str, tag_id: &str) -> Result<()>
Auto Trait Implementations§
impl !RefUnwindSafe for LocationsApi
impl !UnwindSafe for LocationsApi
impl Freeze for LocationsApi
impl Send for LocationsApi
impl Sync for LocationsApi
impl Unpin for LocationsApi
impl UnsafeUnpin for LocationsApi
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