pub struct UpdateMintMethodRequest {
pub unit: String,
pub method: String,
pub min_amount: Option<u64>,
pub max_amount: Option<u64>,
pub options: Option<Bolt11MintMethodOptions>,
pub method_name: Option<String>,
}Expand description
A method the mint serves but has no stored settings for is created by this call, in which case omitted fields are left unset rather than carried over.
Fields§
§unit: StringCurrency unit of the method to update, e.g. “sat”. Known units match case-insensitively, custom units are trimmed and lowercased, and the response echoes the normalized form. A pair the mint has no payment processor for fails with gRPC status INVALID_ARGUMENT.
method: StringPayment method to update, e.g. “bolt11”. Matched case-insensitively.
min_amount: Option<u64>New minimum amount the method accepts. Omit to keep the current value.
max_amount: Option<u64>New maximum amount the method accepts. Omit to keep the current value.
options: Option<Bolt11MintMethodOptions>New method options. Omit to keep the current value.
method_name: Option<String>New human-readable payment method name. Omit to keep the current value.
Implementations§
Source§impl UpdateMintMethodRequest
impl UpdateMintMethodRequest
Sourcepub fn min_amount(&self) -> u64
pub fn min_amount(&self) -> u64
Returns the value of min_amount, or the default value if min_amount is unset.
Sourcepub fn max_amount(&self) -> u64
pub fn max_amount(&self) -> u64
Returns the value of max_amount, or the default value if max_amount is unset.
Sourcepub fn method_name(&self) -> &str
pub fn method_name(&self) -> &str
Returns the value of method_name, or the default value if method_name is unset.
Trait Implementations§
Source§impl Clone for UpdateMintMethodRequest
impl Clone for UpdateMintMethodRequest
Source§impl Debug for UpdateMintMethodRequest
impl Debug for UpdateMintMethodRequest
Source§impl Default for UpdateMintMethodRequest
impl Default for UpdateMintMethodRequest
impl Eq for UpdateMintMethodRequest
Source§impl Hash for UpdateMintMethodRequest
impl Hash for UpdateMintMethodRequest
Source§impl Message for UpdateMintMethodRequest
impl Message for UpdateMintMethodRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self.Source§impl PartialEq for UpdateMintMethodRequest
impl PartialEq for UpdateMintMethodRequest
impl StructuralPartialEq for UpdateMintMethodRequest
Auto Trait Implementations§
impl Freeze for UpdateMintMethodRequest
impl RefUnwindSafe for UpdateMintMethodRequest
impl Send for UpdateMintMethodRequest
impl Sync for UpdateMintMethodRequest
impl Unpin for UpdateMintMethodRequest
impl UnsafeUnpin for UpdateMintMethodRequest
impl UnwindSafe for UpdateMintMethodRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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