Struct torn_api::ApiRequestBuilder
source · pub struct ApiRequestBuilder<A>where
A: ApiSelection,{ /* private fields */ }
Implementations§
source§impl<A> ApiRequestBuilder<A>where
A: ApiSelection,
impl<A> ApiRequestBuilder<A>where A: ApiSelection,
pub fn selections(self, selections: impl IntoIterator<Item = A>) -> Self
pub fn from(self, from: DateTime<Utc>) -> Self
pub fn from_timestamp(self, from: i64) -> Self
pub fn to(self, to: DateTime<Utc>) -> Self
pub fn to_timestamp(self, to: i64) -> Self
pub fn comment(self, comment: String) -> Self
pub fn id<I>(self, id: I) -> Selfwhere I: ToString,
Trait Implementations§
source§impl<A> Default for ApiRequestBuilder<A>where
A: ApiSelection,
impl<A> Default for ApiRequestBuilder<A>where A: ApiSelection,
Auto Trait Implementations§
impl<A> RefUnwindSafe for ApiRequestBuilder<A>where A: RefUnwindSafe,
impl<A> Send for ApiRequestBuilder<A>
impl<A> Sync for ApiRequestBuilder<A>
impl<A> Unpin for ApiRequestBuilder<A>where A: Unpin,
impl<A> UnwindSafe for ApiRequestBuilder<A>where A: UnwindSafe,
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