pub struct RoutingResource { /* private fields */ }Expand description
Routing rules — /api/v2/routings.
Implementations§
Source§impl RoutingResource
impl RoutingResource
Sourcepub async fn list_all(&self) -> Result<Vec<Routing>, ManagerError>
pub async fn list_all(&self) -> Result<Vec<Routing>, ManagerError>
List all routings (auto-paginated).
Sourcepub async fn create(
&self,
body: RestCreateRouting,
) -> Result<RoutingItemResponse, ManagerError>
pub async fn create( &self, body: RestCreateRouting, ) -> Result<RoutingItemResponse, ManagerError>
Create a routing.
Sourcepub async fn get(&self, id: &str) -> Result<RoutingItemResponse, ManagerError>
pub async fn get(&self, id: &str) -> Result<RoutingItemResponse, ManagerError>
Get a routing by id.
Sourcepub async fn update(
&self,
id: &str,
body: RestUpdateRouting,
) -> Result<RoutingItemResponse, ManagerError>
pub async fn update( &self, id: &str, body: RestUpdateRouting, ) -> Result<RoutingItemResponse, ManagerError>
Update a routing.
Auto Trait Implementations§
impl !RefUnwindSafe for RoutingResource
impl !UnwindSafe for RoutingResource
impl Freeze for RoutingResource
impl Send for RoutingResource
impl Sync for RoutingResource
impl Unpin for RoutingResource
impl UnsafeUnpin for RoutingResource
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