pub struct SettingsResponse {
pub unit: String,
pub bolt11: Option<Bolt11Settings>,
pub bolt12: Option<Bolt12Settings>,
pub custom: HashMap<String, String>,
}Expand description
Payment processor settings response Mirrors the proto SettingsResponse structure
Fields§
§unit: StringBase unit of backend
bolt11: Option<Bolt11Settings>BOLT11 settings (None if not supported)
bolt12: Option<Bolt12Settings>BOLT12 settings (None if not supported)
custom: HashMap<String, String>Custom payment methods settings (method name -> settings data)
Trait Implementations§
Source§impl Clone for SettingsResponse
impl Clone for SettingsResponse
Source§fn clone(&self) -> SettingsResponse
fn clone(&self) -> SettingsResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SettingsResponse
impl Debug for SettingsResponse
Source§impl<'de> Deserialize<'de> for SettingsResponse
impl<'de> Deserialize<'de> for SettingsResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SettingsResponse> for Value
impl From<SettingsResponse> for Value
Source§fn from(value: SettingsResponse) -> Self
fn from(value: SettingsResponse) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SettingsResponse
impl PartialEq for SettingsResponse
Source§impl Serialize for SettingsResponse
impl Serialize for SettingsResponse
Source§impl TryFrom<Value> for SettingsResponse
impl TryFrom<Value> for SettingsResponse
impl Eq for SettingsResponse
impl StructuralPartialEq for SettingsResponse
Auto Trait Implementations§
impl Freeze for SettingsResponse
impl RefUnwindSafe for SettingsResponse
impl Send for SettingsResponse
impl Sync for SettingsResponse
impl Unpin for SettingsResponse
impl UnsafeUnpin for SettingsResponse
impl UnwindSafe for SettingsResponse
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