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
sourceimpl Clone for AccountLimits
impl Clone for AccountLimits
sourcefn clone(&self) -> AccountLimits
fn clone(&self) -> AccountLimits
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AccountLimits
impl Debug for AccountLimits
sourceimpl Default for AccountLimits
impl Default for AccountLimits
sourcefn default() -> AccountLimits
fn default() -> AccountLimits
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for AccountLimits
impl<'de> Deserialize<'de> for AccountLimits
sourcefn 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
sourceimpl PartialEq<AccountLimits> for AccountLimits
impl PartialEq<AccountLimits> for AccountLimits
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &AccountLimits) -> bool
fn ne(&self, other: &AccountLimits) -> bool
This method tests for !=
.
sourceimpl Serialize for AccountLimits
impl Serialize for AccountLimits
impl Copy for AccountLimits
impl Eq for AccountLimits
impl StructuralEq for AccountLimits
impl StructuralPartialEq for AccountLimits
Auto Trait Implementations
impl RefUnwindSafe for AccountLimits
impl Send for AccountLimits
impl Sync for AccountLimits
impl Unpin for AccountLimits
impl UnwindSafe for AccountLimits
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more