pub struct SetPermissionParams {
pub message_box: String,
pub sender: Option<String>,
pub recipient_fee: i64,
}Expand description
Parameters for setting a permission rule on a message box.
Serializes to camelCase for POST body to /permissions/set.
sender is omitted when None — the server treats absence as “any sender”.
Fields§
§message_box: String§sender: Option<String>§recipient_fee: i64-1 = block, 0 = always allow, >0 = satoshi fee required
Trait Implementations§
Source§impl Clone for SetPermissionParams
impl Clone for SetPermissionParams
Source§fn clone(&self) -> SetPermissionParams
fn clone(&self) -> SetPermissionParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SetPermissionParams
impl Debug for SetPermissionParams
Source§impl<'de> Deserialize<'de> for SetPermissionParams
impl<'de> Deserialize<'de> for SetPermissionParams
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
Auto Trait Implementations§
impl Freeze for SetPermissionParams
impl RefUnwindSafe for SetPermissionParams
impl Send for SetPermissionParams
impl Sync for SetPermissionParams
impl Unpin for SetPermissionParams
impl UnsafeUnpin for SetPermissionParams
impl UnwindSafe for SetPermissionParams
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