pub struct GetRedpackets<'a> { /* private fields */ }Expand description
Builder for Client::get_redpackets
Implementations§
Source§impl<'a> GetRedpackets<'a>
impl<'a> GetRedpackets<'a>
pub fn new(client: &'a Client) -> Self
pub fn chain<V>(self, value: V) -> Selfwhere
V: TryInto<GetRedpacketsChain>,
pub fn creator<V>(self, value: V) -> Self
pub fn cursor<V>(self, value: V) -> Self
pub fn direction<V>(self, value: V) -> Self
pub fn limit<V>(self, value: V) -> Selfwhere
V: TryInto<NonZeroU64>,
Sourcepub async fn send(self) -> Result<ResponseValue<RedPacketsPage>, Error<()>>
pub async fn send(self) -> Result<ResponseValue<RedPacketsPage>, Error<()>>
Sends a GET request to /v1/redpacket
Trait Implementations§
Source§impl<'a> Clone for GetRedpackets<'a>
impl<'a> Clone for GetRedpackets<'a>
Source§fn clone(&self) -> GetRedpackets<'a>
fn clone(&self) -> GetRedpackets<'a>
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<'a> Freeze for GetRedpackets<'a>
impl<'a> !RefUnwindSafe for GetRedpackets<'a>
impl<'a> Send for GetRedpackets<'a>
impl<'a> Sync for GetRedpackets<'a>
impl<'a> Unpin for GetRedpackets<'a>
impl<'a> !UnwindSafe for GetRedpackets<'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