pub struct StreamEntitlements { /* private fields */ }Expand description
Explicit stream grants confirmed in the account dashboard or with FMP.
A billing plan does not imply access to an exchange or delayed feed. The server remains authoritative about each configured grant.
Implementations§
Source§impl StreamEntitlements
impl StreamEntitlements
Sourcepub fn new(streams: Vec<MarketStream>) -> Result<Self, WebSocketError>
pub fn new(streams: Vec<MarketStream>) -> Result<Self, WebSocketError>
Creates an immutable allowlist containing at least one granted stream.
Sourcepub fn allows(&self, stream: &MarketStream) -> bool
pub fn allows(&self, stream: &MarketStream) -> bool
Returns whether this exact real-time or delayed stream has a grant.
Trait Implementations§
Source§impl Clone for StreamEntitlements
impl Clone for StreamEntitlements
Source§impl Debug for StreamEntitlements
impl Debug for StreamEntitlements
impl Eq for StreamEntitlements
Source§impl PartialEq for StreamEntitlements
impl PartialEq for StreamEntitlements
impl StructuralPartialEq for StreamEntitlements
Auto Trait Implementations§
impl Freeze for StreamEntitlements
impl RefUnwindSafe for StreamEntitlements
impl Send for StreamEntitlements
impl Sync for StreamEntitlements
impl Unpin for StreamEntitlements
impl UnsafeUnpin for StreamEntitlements
impl UnwindSafe for StreamEntitlements
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