pub struct BuildPayloadOpts<'a> {
pub asset_type: &'a str,
pub fields: Option<&'a str>,
pub filters: Option<&'a str>,
pub sort_by: Option<&'a str>,
pub indices: Option<&'a str>,
pub markets: Option<&'a str>,
}Expand description
Options for build_payload.
Fields§
§asset_type: &'a strAsset key (stock, crypto, …).
fields: Option<&'a str>Comma-separated field const names.
filters: Option<&'a str>JSON array of {field, op, value} filters.
sort_by: Option<&'a str>Sort field const name.
indices: Option<&'a str>Stock index CSV (SP500 or SP;SPX).
markets: Option<&'a str>Stock markets CSV (AMERICA or america).
Trait Implementations§
Source§impl<'a> Clone for BuildPayloadOpts<'a>
impl<'a> Clone for BuildPayloadOpts<'a>
Source§fn clone(&self) -> BuildPayloadOpts<'a>
fn clone(&self) -> BuildPayloadOpts<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for BuildPayloadOpts<'a>
Auto Trait Implementations§
impl<'a> Freeze for BuildPayloadOpts<'a>
impl<'a> RefUnwindSafe for BuildPayloadOpts<'a>
impl<'a> Send for BuildPayloadOpts<'a>
impl<'a> Sync for BuildPayloadOpts<'a>
impl<'a> Unpin for BuildPayloadOpts<'a>
impl<'a> UnsafeUnpin for BuildPayloadOpts<'a>
impl<'a> UnwindSafe for BuildPayloadOpts<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more