pub struct Subscription {
pub subscriber_uid: String,
pub resolution: String,
pub last_daily_bar: Bar,
pub handlers: Vec<Handler>,
}
Expand description
A subscription to a specific symbol and resolution
Fields§
§subscriber_uid: String
Unique identifier for the subscriber
resolution: String
Time resolution (e.g., “1D”, “1H”, “15m”)
last_daily_bar: Bar
The last daily bar for this subscription
handlers: Vec<Handler>
List of handlers receiving updates for this subscription
Trait Implementations§
Source§impl Clone for Subscription
impl Clone for Subscription
Source§fn clone(&self) -> Subscription
fn clone(&self) -> Subscription
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for Subscription
impl RefUnwindSafe for Subscription
impl Send for Subscription
impl Sync for Subscription
impl Unpin for Subscription
impl UnwindSafe for Subscription
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