pub struct PeerPolicyEntry {
pub pubkey_hex: String,
pub allow_send: bool,
pub allow_receive: bool,
}Expand description
Per-peer send/receive policy entry, stored alongside relay configuration.
Fields§
§pubkey_hex: StringNostr public key as hex string.
allow_send: boolWhether to allow sending messages to this peer.
allow_receive: boolWhether to allow receiving messages from this peer.
Trait Implementations§
Source§impl Clone for PeerPolicyEntry
impl Clone for PeerPolicyEntry
Source§impl Debug for PeerPolicyEntry
impl Debug for PeerPolicyEntry
Source§impl<'de> Deserialize<'de> for PeerPolicyEntry
impl<'de> Deserialize<'de> for PeerPolicyEntry
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 Forget for PeerPolicyEntry
impl Freeze for PeerPolicyEntry
impl Move for PeerPolicyEntry
impl RefUnwindSafe for PeerPolicyEntry
impl Send for PeerPolicyEntry
impl Sync for PeerPolicyEntry
impl Unpin for PeerPolicyEntry
impl UnsafeUnpin for PeerPolicyEntry
impl UnwindSafe for PeerPolicyEntry
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