pub struct Subscription { /* private fields */ }Expand description
Subscription details explicitly configured for an FMP account.
Implementations§
Source§impl Subscription
impl Subscription
Sourcepub const fn new(
plan: Option<Plan>,
websocket_entitlements: WebSocketEntitlements,
) -> Self
pub const fn new( plan: Option<Plan>, websocket_entitlements: WebSocketEntitlements, ) -> Self
Configures a known plan, or None when the billing plan is unknown.
WebSocket entitlements are independent of the plan name and are supplied explicitly to support legacy accounts and negotiated agreements.
Sourcepub const fn plan(&self) -> Option<Plan>
pub const fn plan(&self) -> Option<Plan>
Returns the configured billing plan, without claiming server verification.
Sourcepub const fn websocket_entitlements(&self) -> WebSocketEntitlements
pub const fn websocket_entitlements(&self) -> WebSocketEntitlements
Returns the configured WebSocket cluster grants.
Trait Implementations§
Source§impl Clone for Subscription
impl Clone for Subscription
impl Copy for Subscription
Source§impl Debug for Subscription
impl Debug for Subscription
impl Eq for Subscription
Source§impl PartialEq for Subscription
impl PartialEq for Subscription
impl StructuralPartialEq for Subscription
Auto Trait Implementations§
impl Freeze for Subscription
impl RefUnwindSafe for Subscription
impl Send for Subscription
impl Sync for Subscription
impl Unpin for Subscription
impl UnsafeUnpin 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