pub struct GeoBan {
pub uuid: Uuid,
pub record_id: Uuid,
pub level: String,
pub code: u32,
pub created_at: i64,
pub updated_at: i64,
}Expand description
A geo ban on one record value: Relay does not answer with that value to clients in the area. Applies to A and AAAA values only; Relay ignores bans on other types.
Fields§
§uuid: UuidBan id.
record_id: UuidThe banned record value.
level: StringRegion, Subregion or Country (kept as a string for forward compatibility).
code: u32Numeric code at that level (e.g. ISO 3166-1 numeric for Country).
created_at: i64Unix seconds.
updated_at: i64Unix seconds.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GeoBan
impl<'de> Deserialize<'de> for GeoBan
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 GeoBan
impl RefUnwindSafe for GeoBan
impl Send for GeoBan
impl Sync for GeoBan
impl Unpin for GeoBan
impl UnsafeUnpin for GeoBan
impl UnwindSafe for GeoBan
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