Struct torn_api::ApiRequestBuilder
source · pub struct ApiRequestBuilder<A>where
A: ApiSelection,{
pub request: ApiRequest<A>,
pub id: Option<String>,
}
Fields§
§request: ApiRequest<A>
§id: Option<String>
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 stats_timestamp(self, ts: i64) -> Self
pub fn stats_datetime(self, dt: DateTime<Utc>) -> 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> Freeze for ApiRequestBuilder<A>
impl<A> RefUnwindSafe for ApiRequestBuilder<A>
impl<A> Send for ApiRequestBuilder<A>
impl<A> Sync for ApiRequestBuilder<A>
impl<A> Unpin for ApiRequestBuilder<A>
impl<A> UnwindSafe for ApiRequestBuilder<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