pub struct Endpoints { /* private fields */ }Expand description
REST and real-time endpoints for one ProjectX deployment.
Implementations§
Source§impl Endpoints
impl Endpoints
Sourcepub fn thefuturesdesk() -> Self
pub fn thefuturesdesk() -> Self
Returns the hosted TheFuturesDesk endpoints.
Sourcepub fn custom(api_base: &str, realtime_base: &str) -> Result<Self, Error>
pub fn custom(api_base: &str, realtime_base: &str) -> Result<Self, Error>
Creates a custom ProjectX endpoint pair.
§Errors
Returns an error for invalid URLs, URLs that cannot serve as a base, or non-HTTPS remote endpoints. Plain HTTP is accepted only for exact loopback hosts so deterministic local fixtures do not weaken production credential transport.
Sourcepub fn realtime_base(&self) -> &str
pub fn realtime_base(&self) -> &str
Returns the configured real-time base 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