Struct ckb_jsonrpc_types::BannedAddr
source · [−]pub struct BannedAddr {
pub address: String,
pub ban_until: Timestamp,
pub ban_reason: String,
pub created_at: Timestamp,
}
Expand description
A banned P2P address.
Fields
address: String
The P2P address.
Example: “/ip4/192.168.0.2/tcp/8112/p2p/QmTRHCdrRtgUzYLNCin69zEvPvLYdxUZLLfLYyHVY3DZAS”
ban_until: Timestamp
The address is banned until this time.
ban_reason: String
The reason.
created_at: Timestamp
When this address is banned.
Trait Implementations
Returns the “default value” for a type. Read more
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for BannedAddr
impl Send for BannedAddr
impl Sync for BannedAddr
impl Unpin for BannedAddr
impl UnwindSafe for BannedAddr
Blanket Implementations
Mutably borrows from an owned value. Read more