Skip to main content

AdvancedSearchSymbolBuilder

Struct AdvancedSearchSymbolBuilder 

Source
pub struct AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with call().

Implementations§

Source§

impl<'f1, 'f2, 'f3, 'f4, S: State> AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, S>

Source

pub async fn call(self) -> Result<SymbolSearchResponse>
where S: IsComplete,

Finishes building and performs the requested action.

Source

pub fn search( self, value: &'f1 str, ) -> AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, SetSearch<S>>
where S::Search: IsUnset,

Optional (Some / Option setters).

Optional (Some / Option setters).

Source

pub fn exchange( self, value: &'f2 str, ) -> AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, SetExchange<S>>
where S::Exchange: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_exchange( self, value: Option<&'f2 str>, ) -> AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, SetExchange<S>>
where S::Exchange: IsUnset,

Optional (Some / Option setters).

Source

pub fn market_type( self, value: MarketType, ) -> AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, SetMarketType<S>>
where S::MarketType: IsUnset,

Optional (Some / Option setters). Default: MarketType::All.

Source

pub fn maybe_market_type( self, value: Option<MarketType>, ) -> AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, SetMarketType<S>>
where S::MarketType: IsUnset,

Optional (Some / Option setters). Default: MarketType::All.

Source

pub fn start( self, value: u64, ) -> AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, SetStart<S>>
where S::Start: IsUnset,

Optional (Some / Option setters). Default: 0.

Source

pub fn maybe_start( self, value: Option<u64>, ) -> AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, SetStart<S>>
where S::Start: IsUnset,

Optional (Some / Option setters). Default: 0.

Source

pub fn country( self, value: Country, ) -> AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, SetCountry<S>>
where S::Country: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_country( self, value: Option<Country>, ) -> AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, SetCountry<S>>
where S::Country: IsUnset,

Optional (Some / Option setters).

Source

pub fn domain( self, value: &'f3 str, ) -> AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, SetDomain<S>>
where S::Domain: IsUnset,

Optional (Some / Option setters). Default: "production".

Source

pub fn maybe_domain( self, value: Option<&'f3 str>, ) -> AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, SetDomain<S>>
where S::Domain: IsUnset,

Optional (Some / Option setters). Default: "production".

Source

pub fn futures_type( self, value: FuturesProductType, ) -> AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, SetFuturesType<S>>
where S::FuturesType: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_futures_type( self, value: Option<FuturesProductType>, ) -> AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, SetFuturesType<S>>
where S::FuturesType: IsUnset,

Optional (Some / Option setters).

Source

pub fn stock_sector( self, value: StockSector, ) -> AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, SetStockSector<S>>
where S::StockSector: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_stock_sector( self, value: Option<StockSector>, ) -> AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, SetStockSector<S>>
where S::StockSector: IsUnset,

Optional (Some / Option setters).

Source

pub fn crypto_centralization( self, value: CryptoCentralization, ) -> AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, SetCryptoCentralization<S>>
where S::CryptoCentralization: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_crypto_centralization( self, value: Option<CryptoCentralization>, ) -> AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, SetCryptoCentralization<S>>
where S::CryptoCentralization: IsUnset,

Optional (Some / Option setters).

Source

pub fn economic_source( self, value: EconomicSource, ) -> AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, SetEconomicSource<S>>
where S::EconomicSource: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_economic_source( self, value: Option<EconomicSource>, ) -> AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, SetEconomicSource<S>>
where S::EconomicSource: IsUnset,

Optional (Some / Option setters).

Source

pub fn economic_category( self, value: EconomicCategory, ) -> AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, SetEconomicCategory<S>>
where S::EconomicCategory: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_economic_category( self, value: Option<EconomicCategory>, ) -> AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, SetEconomicCategory<S>>
where S::EconomicCategory: IsUnset,

Optional (Some / Option setters).

Source

pub fn search_type( self, value: &'f4 str, ) -> AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, SetSearchType<S>>
where S::SearchType: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_search_type( self, value: Option<&'f4 str>, ) -> AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, SetSearchType<S>>
where S::SearchType: IsUnset,

Optional (Some / Option setters).

Auto Trait Implementations§

§

impl<'f1, 'f2, 'f3, 'f4, S> Freeze for AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, S>
where PhantomData<(fn() -> S, &'f1 (), &'f2 (), &'f3 (), &'f4 ())>: Freeze,

§

impl<'f1, 'f2, 'f3, 'f4, S> RefUnwindSafe for AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, S>
where PhantomData<(fn() -> S, &'f1 (), &'f2 (), &'f3 (), &'f4 ())>: RefUnwindSafe,

§

impl<'f1, 'f2, 'f3, 'f4, S> Send for AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, S>
where PhantomData<(fn() -> S, &'f1 (), &'f2 (), &'f3 (), &'f4 ())>: Send,

§

impl<'f1, 'f2, 'f3, 'f4, S> Sync for AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, S>
where PhantomData<(fn() -> S, &'f1 (), &'f2 (), &'f3 (), &'f4 ())>: Sync,

§

impl<'f1, 'f2, 'f3, 'f4, S> Unpin for AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, S>
where PhantomData<(fn() -> S, &'f1 (), &'f2 (), &'f3 (), &'f4 ())>: Unpin,

§

impl<'f1, 'f2, 'f3, 'f4, S> UnsafeUnpin for AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, S>
where PhantomData<(fn() -> S, &'f1 (), &'f2 (), &'f3 (), &'f4 ())>: UnsafeUnpin,

§

impl<'f1, 'f2, 'f3, 'f4, S> UnwindSafe for AdvancedSearchSymbolBuilder<'f1, 'f2, 'f3, 'f4, S>
where PhantomData<(fn() -> S, &'f1 (), &'f2 (), &'f3 (), &'f4 ())>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more