pub struct DrawdownsClient {
pub http_client: HttpClient,
}Fields§
§http_client: HttpClientImplementations§
Source§impl DrawdownsClient
impl DrawdownsClient
pub fn new(config: ClientConfig) -> Result<Self, ApiError>
Sourcepub async fn list_drawdowns(
&self,
request: &ListDrawdownsQueryRequest,
options: Option<RequestOptions>,
) -> Result<PaginatedResponseDrawdownResponse, ApiError>
pub async fn list_drawdowns( &self, request: &ListDrawdownsQueryRequest, options: Option<RequestOptions>, ) -> Result<PaginatedResponseDrawdownResponse, ApiError>
Retrieve a list of drawdowns.
§Arguments
order_by- Field to order the results by, e.g., ‘created_at:desc,updated_at:asc’q- Query string for filtering. Format: “field:operator:value;…”. Supported fields: . Supported operators: is, in, not_in, contains, not_contains, like, not_like, ilike, not_ilike, gt, gte, lt, lte, starts_with, ends_with, is_null, is_not_null.options- Additional request options such as headers, timeout, etc.
§Returns
JSON response from the API
Sourcepub async fn create_drawdown_request(
&self,
request: &DrawdownCreatePayload,
options: Option<RequestOptions>,
) -> Result<DrawdownResponse, ApiError>
pub async fn create_drawdown_request( &self, request: &DrawdownCreatePayload, options: Option<RequestOptions>, ) -> Result<DrawdownResponse, ApiError>
Sourcepub async fn list_drawdown_checklists(
&self,
drawdown_id: &str,
request: &ListDrawdownChecklistsQueryRequest,
options: Option<RequestOptions>,
) -> Result<PaginatedResponseDrawdownChecklistResponse, ApiError>
pub async fn list_drawdown_checklists( &self, drawdown_id: &str, request: &ListDrawdownChecklistsQueryRequest, options: Option<RequestOptions>, ) -> Result<PaginatedResponseDrawdownChecklistResponse, ApiError>
Retrieve all checklist items for a specific drawdown
§Arguments
order_by- Field to order the results by, e.g., ‘created_at:desc,updated_at:asc’q- Query string for filtering. Format: “field:operator:value;…”. Supported fields: . Supported operators: is, in, not_in, contains, not_contains, like, not_like, ilike, not_ilike, gt, gte, lt, lte, starts_with, ends_with, is_null, is_not_null.options- Additional request options such as headers, timeout, etc.
§Returns
JSON response from the API
Auto Trait Implementations§
impl !RefUnwindSafe for DrawdownsClient
impl !UnwindSafe for DrawdownsClient
impl Freeze for DrawdownsClient
impl Send for DrawdownsClient
impl Sync for DrawdownsClient
impl Unpin for DrawdownsClient
impl UnsafeUnpin for DrawdownsClient
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