pub struct ClientBuilderStep<CurrentStep> { /* private fields */ }Expand description
Phantom Type for compile time enforcement on the order of builder steps used.
Implementations§
Source§impl ClientBuilderStep<Step1>
impl ClientBuilderStep<Step1>
Sourcepub fn credentials(
self,
client_id: &str,
client_secret: &str,
) -> Result<ClientBuilderStep<Step2>, Error>
pub fn credentials( self, client_id: &str, client_secret: &str, ) -> Result<ClientBuilderStep<Step2>, Error>
Set your client id/key and secret
Sourcepub fn testing_url(self, url: &str) -> ClientBuilderStep<Step3>
pub fn testing_url(self, url: &str) -> ClientBuilderStep<Step3>
Set the testing url for the client to use for sending ALL the requests to your test/mock server instead of the default TradeStation API url.
NOTE: This should ONLY be set for testing and
mocking purposes. This should NOT be set used
with a production Client.
Trait Implementations§
Source§impl<CurrentStep: Debug> Debug for ClientBuilderStep<CurrentStep>
impl<CurrentStep: Debug> Debug for ClientBuilderStep<CurrentStep>
Source§impl<CurrentStep: Default> Default for ClientBuilderStep<CurrentStep>
impl<CurrentStep: Default> Default for ClientBuilderStep<CurrentStep>
Source§fn default() -> ClientBuilderStep<CurrentStep>
fn default() -> ClientBuilderStep<CurrentStep>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<CurrentStep> Freeze for ClientBuilderStep<CurrentStep>where
CurrentStep: Freeze,
impl<CurrentStep> !RefUnwindSafe for ClientBuilderStep<CurrentStep>
impl<CurrentStep> Send for ClientBuilderStep<CurrentStep>where
CurrentStep: Send,
impl<CurrentStep> Sync for ClientBuilderStep<CurrentStep>where
CurrentStep: Sync,
impl<CurrentStep> Unpin for ClientBuilderStep<CurrentStep>where
CurrentStep: Unpin,
impl<CurrentStep> !UnwindSafe for ClientBuilderStep<CurrentStep>
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