pub struct SinkholeRole {
pub uuid: Uuid,
pub list_id: Uuid,
pub sinkhole_type: String,
pub pattern: String,
pub created_at: i64,
pub updated_at: i64,
}Expand description
One rule of a sinkhole list (Core calls rules “roles”).
Fields§
§uuid: UuidRule id.
list_id: UuidThe list the rule belongs to.
sinkhole_type: StringExact, Wildcard or Regex (kept as a string for forward compatibility); see
SinkholeRole::kind.
pattern: StringAs stored: names in lowercase, without the trailing dot; a regex unchanged.
created_at: i64Unix seconds.
updated_at: i64Unix seconds.
Implementations§
Source§impl SinkholeRole
impl SinkholeRole
Sourcepub fn kind(&self) -> Option<SinkholeRoleType>
pub fn kind(&self) -> Option<SinkholeRoleType>
sinkhole_type in its typed form, if this SDK version knows it.
Trait Implementations§
Source§impl Clone for SinkholeRole
impl Clone for SinkholeRole
Source§fn clone(&self) -> SinkholeRole
fn clone(&self) -> SinkholeRole
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 SinkholeRole
impl Debug for SinkholeRole
Source§impl<'de> Deserialize<'de> for SinkholeRole
impl<'de> Deserialize<'de> for SinkholeRole
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 SinkholeRole
impl RefUnwindSafe for SinkholeRole
impl Send for SinkholeRole
impl Sync for SinkholeRole
impl Unpin for SinkholeRole
impl UnsafeUnpin for SinkholeRole
impl UnwindSafe for SinkholeRole
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