pub enum Command {
Show 33 variants
Close,
Ping,
SendRawMessage(CommandMsg),
SetAuthToken(CommandMsg),
SetLocale(SetLocaleCommandMsg),
SetDataQuality(CommandMsg),
SetTimeZone(SetTimeZoneCommandMsg),
CreateQuoteSession(CommandMsg),
DeleteQuoteSession(CommandMsg),
FastSymbols(QuoteCommandMsg),
SetQuoteFields(CommandMsg),
AddQuoteSymbols(QuoteCommandMsg),
RemoveQuoteSymbols(QuoteCommandMsg),
CreateChartSession(CommandMsg),
DeleteChartSession(CommandMsg),
RequestMoreData(ChartDataRequestMsg),
RequestMoreTickmarks(ChartDataRequestMsg),
CreateChartSeries(ChartSeriesCommandMsg),
ModifyChartSeries(ChartSeriesCommandMsg),
RemoveSeries(SessionTerminationCommandMsg),
ResolveSymbol(ResolveSymbolCommandMsg),
CreateReplaySession(CommandMsg),
DeleteReplaySession(CommandMsg),
AddReplaySeries(AddReplaySeriesCommandMsg),
ReplayStep(ReplayStepCommandMsg),
ReplayStart(ReplayStartCommandMsg),
ReplayStop(ReplayStopCommandMsg),
ReplayReset(ReplayResetCommandMsg),
CreateStudy(StudyCommandMsg),
ModifyStudy(StudyCommandMsg),
RemoveStudy(SessionTerminationCommandMsg),
BatchCommands(Vec<Command>),
ConditionalCommand {
condition: CommandCondition,
command: Box<Command>,
fallback: Option<Box<Command>>,
},
}Expand description
A command to be dispatched to the TradingView WebSocket session.
Covers all protocol operations: chart sessions, quote subscriptions, replay mode, Pine Script studies, and connection management.
Variants§
Close
Ping
SendRawMessage(CommandMsg)
SetAuthToken(CommandMsg)
SetLocale(SetLocaleCommandMsg)
SetDataQuality(CommandMsg)
SetTimeZone(SetTimeZoneCommandMsg)
CreateQuoteSession(CommandMsg)
Quote Session Commands
DeleteQuoteSession(CommandMsg)
FastSymbols(QuoteCommandMsg)
SetQuoteFields(CommandMsg)
AddQuoteSymbols(QuoteCommandMsg)
RemoveQuoteSymbols(QuoteCommandMsg)
CreateChartSession(CommandMsg)
Chart Session Commands
DeleteChartSession(CommandMsg)
RequestMoreData(ChartDataRequestMsg)
RequestMoreTickmarks(ChartDataRequestMsg)
CreateChartSeries(ChartSeriesCommandMsg)
ModifyChartSeries(ChartSeriesCommandMsg)
RemoveSeries(SessionTerminationCommandMsg)
ResolveSymbol(ResolveSymbolCommandMsg)
CreateReplaySession(CommandMsg)
Replay Session Commands
DeleteReplaySession(CommandMsg)
AddReplaySeries(AddReplaySeriesCommandMsg)
ReplayStep(ReplayStepCommandMsg)
ReplayStart(ReplayStartCommandMsg)
ReplayStop(ReplayStopCommandMsg)
ReplayReset(ReplayResetCommandMsg)
CreateStudy(StudyCommandMsg)
Study Commands
ModifyStudy(StudyCommandMsg)
RemoveStudy(SessionTerminationCommandMsg)
BatchCommands(Vec<Command>)
Batch Commands
ConditionalCommand
Conditional Commands
Implementations§
Source§impl Command
impl Command
Sourcepub fn priority(&self) -> CommandPriority
pub fn priority(&self) -> CommandPriority
Get command priority for queue management
Sourcepub fn estimated_duration(&self) -> Duration
pub fn estimated_duration(&self) -> Duration
Get estimated execution time for timeout management
Sourcepub fn requires_session(&self) -> Option<&str>
pub fn requires_session(&self) -> Option<&str>
Check if command requires session to exist
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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