pub struct UpdateMeltMethodRequest {
pub unit: String,
pub method: String,
pub min_amount: Option<u64>,
pub max_amount: Option<u64>,
pub options: Option<Bolt11MeltMethodOptions>,
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<Bolt11MeltMethodOptions>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 UpdateMeltMethodRequest
impl UpdateMeltMethodRequest
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 UpdateMeltMethodRequest
impl Clone for UpdateMeltMethodRequest
Source§impl Debug for UpdateMeltMethodRequest
impl Debug for UpdateMeltMethodRequest
Source§impl Default for UpdateMeltMethodRequest
impl Default for UpdateMeltMethodRequest
impl Eq for UpdateMeltMethodRequest
Source§impl Hash for UpdateMeltMethodRequest
impl Hash for UpdateMeltMethodRequest
Source§impl Message for UpdateMeltMethodRequest
impl Message for UpdateMeltMethodRequest
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 UpdateMeltMethodRequest
impl PartialEq for UpdateMeltMethodRequest
impl StructuralPartialEq for UpdateMeltMethodRequest
Auto Trait Implementations§
impl Freeze for UpdateMeltMethodRequest
impl RefUnwindSafe for UpdateMeltMethodRequest
impl Send for UpdateMeltMethodRequest
impl Sync for UpdateMeltMethodRequest
impl Unpin for UpdateMeltMethodRequest
impl UnsafeUnpin for UpdateMeltMethodRequest
impl UnwindSafe for UpdateMeltMethodRequest
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