pub struct SearchRequest {
pub text: String,
pub exchange: Option<String>,
pub instrument_type: Option<String>,
pub start: usize,
pub highlight: bool,
pub language: String,
pub domain: String,
}Fields§
§text: String§exchange: Option<String>§instrument_type: Option<String>§start: usize§highlight: bool§language: String§domain: StringImplementations§
Source§impl SearchRequest
impl SearchRequest
Sourcepub fn builder() -> SearchRequestBuilder
pub fn builder() -> SearchRequestBuilder
Create an instance of SearchRequest using the builder syntax
Source§impl SearchRequest
impl SearchRequest
pub fn new(text: impl Into<String>) -> Self
pub fn equities(text: impl Into<String>) -> Self
pub fn forex(text: impl Into<String>) -> Self
pub fn crypto(text: impl Into<String>) -> Self
pub fn futures(text: impl Into<String>) -> Self
pub fn indices(text: impl Into<String>) -> Self
pub fn bonds(text: impl Into<String>) -> Self
pub fn cfds(text: impl Into<String>) -> Self
pub fn options(text: impl Into<String>) -> Self
pub fn exchange(self, exchange: impl Into<String>) -> Self
pub fn asset_class(self, asset_class: SearchAssetClass) -> Self
pub fn instrument_type(self, instrument_type: impl Into<String>) -> Self
pub fn start(self, start: usize) -> Self
pub fn highlight(self, highlight: bool) -> Self
pub fn language(self, language: impl Into<String>) -> Self
pub fn domain(self, domain: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for SearchRequest
impl Clone for SearchRequest
Source§fn clone(&self) -> SearchRequest
fn clone(&self) -> SearchRequest
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 moreSource§impl Debug for SearchRequest
impl Debug for SearchRequest
Source§impl PartialEq for SearchRequest
impl PartialEq for SearchRequest
impl Eq for SearchRequest
impl StructuralPartialEq for SearchRequest
Auto Trait Implementations§
impl Freeze for SearchRequest
impl RefUnwindSafe for SearchRequest
impl Send for SearchRequest
impl Sync for SearchRequest
impl Unpin for SearchRequest
impl UnsafeUnpin for SearchRequest
impl UnwindSafe for SearchRequest
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.