pub struct AccountBillingLock {
pub reason: i32,
pub locked_at: Option<Timestamp>,
pub delete_after: Option<Timestamp>,
pub used_bytes: u64,
pub cap_bytes: u64,
pub allowed_actions: Vec<i32>,
}Expand description
Current account billing restriction. used_bytes and cap_bytes are retained logical bytes from the same authoritative storage ledger used to apply the Free-plan gate; they are decimal byte counts, not physical/object-store size.
Fields§
§reason: i32§locked_at: Option<Timestamp>§delete_after: Option<Timestamp>§used_bytes: u64§cap_bytes: u64§allowed_actions: Vec<i32>Implementations§
Source§impl AccountBillingLock
impl AccountBillingLock
Sourcepub fn reason(&self) -> AccountBillingLockReason
pub fn reason(&self) -> AccountBillingLockReason
Returns the enum value of reason, or the default if the field is set to an invalid enum value.
Sourcepub fn set_reason(&mut self, value: AccountBillingLockReason)
pub fn set_reason(&mut self, value: AccountBillingLockReason)
Sets reason to the provided enum value.
Sourcepub fn allowed_actions(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<AccountBillingLockAllowedAction>> ⓘ
pub fn allowed_actions( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<AccountBillingLockAllowedAction>> ⓘ
Returns an iterator which yields the valid enum values contained in allowed_actions.
Sourcepub fn push_allowed_actions(&mut self, value: AccountBillingLockAllowedAction)
pub fn push_allowed_actions(&mut self, value: AccountBillingLockAllowedAction)
Appends the provided enum value to allowed_actions.
Trait Implementations§
Source§impl Clone for AccountBillingLock
impl Clone for AccountBillingLock
Source§impl Debug for AccountBillingLock
impl Debug for AccountBillingLock
Source§impl Default for AccountBillingLock
impl Default for AccountBillingLock
impl Eq for AccountBillingLock
Source§impl Hash for AccountBillingLock
impl Hash for AccountBillingLock
Source§impl Message for AccountBillingLock
impl Message for AccountBillingLock
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for AccountBillingLock
impl PartialEq for AccountBillingLock
impl StructuralPartialEq for AccountBillingLock
Auto Trait Implementations§
impl Freeze for AccountBillingLock
impl RefUnwindSafe for AccountBillingLock
impl Send for AccountBillingLock
impl Sync for AccountBillingLock
impl Unpin for AccountBillingLock
impl UnsafeUnpin for AccountBillingLock
impl UnwindSafe for AccountBillingLock
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