pub struct Client<'a> { /* private fields */ }Implementations§
Source§impl Client<'_>
impl Client<'_>
pub async fn list( &self, project_id: Option<String>, ) -> Result<Vec<Section>, Error>
pub async fn create( &self, request: CreateRequest, ) -> Result<Option<Section>, Error>
pub async fn delete(&self, id: String) -> Option<Error>
pub async fn get(&self, id: String) -> Result<Option<Section>, Error>
pub async fn update( &self, id: String, request: UpdateRequest, ) -> Result<Option<Section>, Error>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Client<'a>
impl<'a> RefUnwindSafe for Client<'a>
impl<'a> Send for Client<'a>
impl<'a> Sync for Client<'a>
impl<'a> Unpin for Client<'a>
impl<'a> UnwindSafe for Client<'a>
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