pub struct RequestApi<'a> { /* private fields */ }Expand description
Request API.
Implementations§
Source§impl<'a> RequestApi<'a>
impl<'a> RequestApi<'a>
pub fn new(client: &'a ConcurClient) -> Self
Sourcepub async fn list(&self, query: &RequestListQuery) -> Result<RequestList>
pub async fn list(&self, query: &RequestListQuery) -> Result<RequestList>
List requests.
Sourcepub async fn get(
&self,
request_uuid: &str,
user_id: Option<&str>,
) -> Result<Request>
pub async fn get( &self, request_uuid: &str, user_id: Option<&str>, ) -> Result<Request>
Get a request by UUID.
Sourcepub async fn create(
&self,
request: &Request,
user_id: Option<&str>,
) -> Result<Request>
pub async fn create( &self, request: &Request, user_id: Option<&str>, ) -> Result<Request>
Create a new request.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for RequestApi<'a>
impl<'a> !UnwindSafe for RequestApi<'a>
impl<'a> Forget for RequestApi<'a>
impl<'a> Freeze for RequestApi<'a>
impl<'a> Send for RequestApi<'a>
impl<'a> Sync for RequestApi<'a>
impl<'a> Unpin for RequestApi<'a>
impl<'a> UnsafeUnpin for RequestApi<'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