pub enum ApprovedSpendingLimit {
ApprovedSpendingLimitMicros(i64),
ApprovedSpendingLimitType(i32),
}
Expand description
The approved spending limit.
For example, if the amount already spent by the account exceeds the proposed spending limit at the time the proposal is approved, the approved spending limit is set to the amount already spent.
Variants§
ApprovedSpendingLimitMicros(i64)
Output only. The approved spending limit in micros. One million is equivalent to one unit. This will only be populated if the proposed spending limit is finite, and will always be greater than or equal to the proposed spending limit.
ApprovedSpendingLimitType(i32)
Output only. The approved spending limit as a well-defined type, for example, INFINITE. This will only be populated if the approved spending limit is INFINITE.
Implementations§
Source§impl ApprovedSpendingLimit
impl ApprovedSpendingLimit
Sourcepub fn merge<B>(
field: &mut Option<ApprovedSpendingLimit>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
pub fn merge<B>(
field: &mut Option<ApprovedSpendingLimit>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext,
) -> Result<(), DecodeError>where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
Source§impl Clone for ApprovedSpendingLimit
impl Clone for ApprovedSpendingLimit
Source§fn clone(&self) -> ApprovedSpendingLimit
fn clone(&self) -> ApprovedSpendingLimit
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ApprovedSpendingLimit
impl Debug for ApprovedSpendingLimit
Source§impl PartialEq for ApprovedSpendingLimit
impl PartialEq for ApprovedSpendingLimit
impl StructuralPartialEq for ApprovedSpendingLimit
Auto Trait Implementations§
impl Freeze for ApprovedSpendingLimit
impl RefUnwindSafe for ApprovedSpendingLimit
impl Send for ApprovedSpendingLimit
impl Sync for ApprovedSpendingLimit
impl Unpin for ApprovedSpendingLimit
impl UnwindSafe for ApprovedSpendingLimit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request