pub struct NewsService { /* private fields */ }Expand description
News service for accessing articles and announcements.
Implementations§
Source§impl NewsService
impl NewsService
Sourcepub async fn get_article_by_page(
&self,
req: GetArticleByPageRequest,
opts: Option<RequestOptions>,
) -> Result<GetArticleByPageResponse>
pub async fn get_article_by_page( &self, req: GetArticleByPageRequest, opts: Option<RequestOptions>, ) -> Result<GetArticleByPageResponse>
Get paginated article list.
§Arguments
req- Request parameters including column_id, page_no, page_sizeopts- Optional request options
§Valid Column IDs
244- Exchange announcements (交易所公告)245- Exchange notices (交易所通知)246- Delivery information (交割信息)248- Member service announcements (会员服务系统公告)1076- Options announcements (期权公告)242- News (新闻)
Sourcepub async fn get_article_detail(
&self,
article_id: &str,
opts: Option<RequestOptions>,
) -> Result<ArticleDetail>
pub async fn get_article_detail( &self, article_id: &str, opts: Option<RequestOptions>, ) -> Result<ArticleDetail>
Get article detail by ID.
§Arguments
article_id- The article ID to fetchopts- Optional request options
Trait Implementations§
Source§impl Clone for NewsService
impl Clone for NewsService
Source§fn clone(&self) -> NewsService
fn clone(&self) -> NewsService
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NewsService
impl !RefUnwindSafe for NewsService
impl Send for NewsService
impl Sync for NewsService
impl Unpin for NewsService
impl !UnwindSafe for NewsService
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