pub struct UpdateMintMethodResponse {
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
The method settings in effect after the update, with omitted request fields carrying over their previous values. On failure a gRPC error status is returned instead.
Fields§
§unit: StringCurrency unit of the updated method.
method: StringPayment method that was updated.
min_amount: Option<u64>Minimum amount the method accepts, if set.
max_amount: Option<u64>Maximum amount the method accepts, if set.
options: Option<Bolt11MintMethodOptions>Method options. Set when the method carries bolt11 or bolt12 description options. Other method options are omitted.
method_name: Option<String>Human-readable payment method name. When unset, wallets derive one from method by replacing ‘_’ and ‘-’ with spaces and title-casing words.
Implementations§
Source§impl UpdateMintMethodResponse
impl UpdateMintMethodResponse
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 UpdateMintMethodResponse
impl Clone for UpdateMintMethodResponse
Source§impl Debug for UpdateMintMethodResponse
impl Debug for UpdateMintMethodResponse
Source§impl Default for UpdateMintMethodResponse
impl Default for UpdateMintMethodResponse
impl Eq for UpdateMintMethodResponse
Source§impl From<MintMethodSettings> for UpdateMintMethodResponse
impl From<MintMethodSettings> for UpdateMintMethodResponse
Source§fn from(settings: MintMethodSettings) -> Self
fn from(settings: MintMethodSettings) -> Self
Source§impl Hash for UpdateMintMethodResponse
impl Hash for UpdateMintMethodResponse
Source§impl Message for UpdateMintMethodResponse
impl Message for UpdateMintMethodResponse
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 UpdateMintMethodResponse
impl PartialEq for UpdateMintMethodResponse
impl StructuralPartialEq for UpdateMintMethodResponse
Auto Trait Implementations§
impl Freeze for UpdateMintMethodResponse
impl RefUnwindSafe for UpdateMintMethodResponse
impl Send for UpdateMintMethodResponse
impl Sync for UpdateMintMethodResponse
impl Unpin for UpdateMintMethodResponse
impl UnsafeUnpin for UpdateMintMethodResponse
impl UnwindSafe for UpdateMintMethodResponse
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