pub struct Endpoints { /* private fields */ }Expand description
Typed endpoint configuration for the TradingView surfaces used by the client.
Implementations§
Source§impl Endpoints
impl Endpoints
Sourcepub fn builder() -> EndpointsBuilder
pub fn builder() -> EndpointsBuilder
Create an instance of Endpoints using the builder syntax
Source§impl Endpoints
impl Endpoints
pub fn scanner_base_url(&self) -> &Url
pub fn symbol_search_base_url(&self) -> &Url
pub fn calendar_base_url(&self) -> &Url
pub fn websocket_url(&self) -> &Url
pub fn site_origin(&self) -> &Url
pub fn data_origin(&self) -> &Url
pub fn with_scanner_base_url(self, url: impl AsRef<str>) -> Result<Self>
pub fn with_symbol_search_base_url(self, url: impl AsRef<str>) -> Result<Self>
pub fn with_calendar_base_url(self, url: impl AsRef<str>) -> Result<Self>
pub fn with_websocket_url(self, url: impl AsRef<str>) -> Result<Self>
pub fn with_site_origin(self, url: impl AsRef<str>) -> Result<Self>
pub fn with_data_origin(self, url: impl AsRef<str>) -> Result<Self>
pub fn scanner_url(&self, route: &str) -> Result<Url>
pub fn scanner_metainfo_url(&self, market: &Market) -> Result<Url>
Trait Implementations§
impl Eq for Endpoints
impl StructuralPartialEq for Endpoints
Auto Trait Implementations§
impl Freeze for Endpoints
impl RefUnwindSafe for Endpoints
impl Send for Endpoints
impl Sync for Endpoints
impl Unpin for Endpoints
impl UnsafeUnpin for Endpoints
impl UnwindSafe for Endpoints
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.