pub struct DataArgs<Mode, Subs, Config> {
pub mode: Mode,
pub subscriptions: Subs,
pub config: Config,
}Expand description
Configuration arguments for initialising a data stream.
This struct encapsulates all parameters required to initialise a data stream, including the streaming mode (live or historical), subscriptions, server configuration, and timeout settings.
Fields§
§mode: ModeThe streaming mode (eg/ Live or Historical).
subscriptions: SubsSubscriptions defining what data to stream.
config: ConfigConfiguration required for the DataStream source (eg/ credentials, urls, timeouts, etc.).
Implementations§
Source§impl<Subs, Config> DataArgs<Historical, Subs, Config>
impl<Subs, Config> DataArgs<Historical, Subs, Config>
Sourcepub fn historical(
historical: Historical,
subscriptions: Subs,
config: Config,
) -> Self
pub fn historical( historical: Historical, subscriptions: Subs, config: Config, ) -> Self
Trait Implementations§
Source§impl<'de, Mode, Subs, Config> Deserialize<'de> for DataArgs<Mode, Subs, Config>
impl<'de, Mode, Subs, Config> Deserialize<'de> for DataArgs<Mode, Subs, Config>
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
Source§impl<Mode: Ord, Subs: Ord, Config: Ord> Ord for DataArgs<Mode, Subs, Config>
impl<Mode: Ord, Subs: Ord, Config: Ord> Ord for DataArgs<Mode, Subs, Config>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<Mode: PartialEq, Subs: PartialEq, Config: PartialEq> PartialEq for DataArgs<Mode, Subs, Config>
impl<Mode: PartialEq, Subs: PartialEq, Config: PartialEq> PartialEq for DataArgs<Mode, Subs, Config>
Source§impl<Mode: PartialOrd, Subs: PartialOrd, Config: PartialOrd> PartialOrd for DataArgs<Mode, Subs, Config>
impl<Mode: PartialOrd, Subs: PartialOrd, Config: PartialOrd> PartialOrd for DataArgs<Mode, Subs, Config>
impl<Mode: Copy, Subs: Copy, Config: Copy> Copy for DataArgs<Mode, Subs, Config>
impl<Mode: Eq, Subs: Eq, Config: Eq> Eq for DataArgs<Mode, Subs, Config>
impl<Mode, Subs, Config> StructuralPartialEq for DataArgs<Mode, Subs, Config>
Auto Trait Implementations§
impl<Mode, Subs, Config> Freeze for DataArgs<Mode, Subs, Config>
impl<Mode, Subs, Config> RefUnwindSafe for DataArgs<Mode, Subs, Config>
impl<Mode, Subs, Config> Send for DataArgs<Mode, Subs, Config>
impl<Mode, Subs, Config> Sync for DataArgs<Mode, Subs, Config>
impl<Mode, Subs, Config> Unpin for DataArgs<Mode, Subs, Config>
impl<Mode, Subs, Config> UnsafeUnpin for DataArgs<Mode, Subs, Config>
impl<Mode, Subs, Config> UnwindSafe for DataArgs<Mode, Subs, Config>
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more