pub struct ControlPlaneClient { /* private fields */ }Implementations§
Source§impl ControlPlaneClient
impl ControlPlaneClient
pub fn new(base: impl Into<String>) -> Self
pub fn from_env() -> Self
pub async fn post<T: DeserializeOwned, B: Serialize>( &self, path: &str, body: &B, bearer: Option<&str>, ) -> Result<T>
pub async fn get<T: DeserializeOwned>( &self, path: &str, bearer: &str, ) -> Result<T>
pub async fn delete<T: DeserializeOwned>( &self, path: &str, bearer: &str, ) -> Result<T>
Auto Trait Implementations§
impl !RefUnwindSafe for ControlPlaneClient
impl !UnwindSafe for ControlPlaneClient
impl Freeze for ControlPlaneClient
impl Send for ControlPlaneClient
impl Sync for ControlPlaneClient
impl Unpin for ControlPlaneClient
impl UnsafeUnpin for ControlPlaneClient
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