pub struct NewsClient { /* private fields */ }Implementations§
Source§impl NewsClient
impl NewsClient
pub async fn list(&self, request: ListRequest) -> Result<ListResponse, Error>
pub async fn list_all( &self, request: ListRequest, ) -> Result<ListResponse, Error>
pub fn list_stream( &self, request: ListRequest, ) -> Pin<Box<dyn Stream<Item = Result<ListResponse, Error>> + Send>>
Trait Implementations§
Source§impl Clone for NewsClient
impl Clone for NewsClient
Source§fn clone(&self) -> NewsClient
fn clone(&self) -> NewsClient
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 NewsClient
impl !RefUnwindSafe for NewsClient
impl Send for NewsClient
impl Sync for NewsClient
impl Unpin for NewsClient
impl !UnwindSafe for NewsClient
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