pub struct Support<'a, T> { /* private fields */ }Expand description
Accessor for the public support and announcement endpoints.
Obtain one via OkxClient::support.
Implementations§
Source§impl<'a, T: Transport> Support<'a, T>
impl<'a, T: Transport> Support<'a, T>
Sourcepub async fn get_announcements(
&self,
request: &AnnouncementsRequest<'_>,
) -> Result<Vec<AnnouncementsPage>, Error>
pub async fn get_announcements( &self, request: &AnnouncementsRequest<'_>, ) -> Result<Vec<AnnouncementsPage>, Error>
Retrieve paginated announcements.
GET /api/v5/support/announcements. Public (unauthenticated). The
returned Vec always contains one AnnouncementsPage; the actual
announcement list is in [0].details.
§Errors
Returns RestError::Okx on a non-zero OKX code, or
RestError::Transport/RestError::Decode on transport/parsing failure.
Sourcepub async fn get_announcement_types(
&self,
) -> Result<Vec<AnnouncementType>, Error>
pub async fn get_announcement_types( &self, ) -> Result<Vec<AnnouncementType>, Error>
Retrieve all available announcement types.
GET /api/v5/support/announcement-types. Public (unauthenticated). Use
the returned ann_type values to filter
get_announcements.
§Errors
See get_announcements.
Auto Trait Implementations§
impl<'a, T> Freeze for Support<'a, T>
impl<'a, T> RefUnwindSafe for Support<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Support<'a, T>where
T: Sync,
impl<'a, T> Sync for Support<'a, T>where
T: Sync,
impl<'a, T> Unpin for Support<'a, T>
impl<'a, T> UnsafeUnpin for Support<'a, T>
impl<'a, T> UnwindSafe for Support<'a, T>where
T: RefUnwindSafe,
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