Struct nats::jetstream::AccountLimits
source · pub struct AccountLimits {
pub max_memory: i64,
pub max_storage: i64,
pub max_streams: i64,
pub max_consumers: i64,
}
Expand description
Various limits imposed on a particular account.
Fields§
§max_memory: i64
Maximum memory for this account (-1 if no limit)
max_storage: i64
Maximum storage for this account (-1 if no limit)
max_streams: i64
Maximum streams for this account (-1 if no limit)
max_consumers: i64
Maximum consumers for this account (-1 if no limit)
Trait Implementations§
source§impl Clone for AccountLimits
impl Clone for AccountLimits
source§fn clone(&self) -> AccountLimits
fn clone(&self) -> AccountLimits
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AccountLimits
impl Debug for AccountLimits
source§impl Default for AccountLimits
impl Default for AccountLimits
source§fn default() -> AccountLimits
fn default() -> AccountLimits
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AccountLimits
impl<'de> Deserialize<'de> for AccountLimits
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 PartialEq for AccountLimits
impl PartialEq for AccountLimits
source§fn eq(&self, other: &AccountLimits) -> bool
fn eq(&self, other: &AccountLimits) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccountLimits
impl Serialize for AccountLimits
impl Copy for AccountLimits
impl Eq for AccountLimits
impl StructuralPartialEq for AccountLimits
Auto Trait Implementations§
impl Freeze for AccountLimits
impl RefUnwindSafe for AccountLimits
impl Send for AccountLimits
impl Sync for AccountLimits
impl Unpin for AccountLimits
impl UnwindSafe for AccountLimits
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