pub struct SinkholeList {
pub uuid: Uuid,
pub name: Option<String>,
pub owner_user_id: Option<Uuid>,
pub is_shared: bool,
pub list_type: String,
pub created_at: i64,
pub updated_at: i64,
pub roles: Option<Vec<SinkholeRole>>,
}Expand description
A list of sinkhole rules (names to block or to allow). It applies to the client
identities linked to it (SinkholeLink).
Relay allows every name by default. A name matching a Blacklist of the client is
blocked; a name matching a Whitelist of the client is allowed even if a blacklist
matches too (an exception, not “allow only these”).
Fields§
§uuid: UuidList id.
name: Option<String>Optional label, 1–100 characters. Not unique: two lists may share a name.
owner_user_id: Option<Uuid>Owning user. None for admin-managed lists (and lists created with a zone key
before Core stopped allowing that).
Other users may link their client identities to it (but not read or change its rules).
list_type: StringBlacklist or Whitelist (kept as a string for forward compatibility); see
SinkholeList::kind.
created_at: i64Unix seconds.
updated_at: i64Unix seconds.
roles: Option<Vec<SinkholeRole>>The rules; only when read with
SinkholeLists::get and with_roles = true.
Implementations§
Source§impl SinkholeList
impl SinkholeList
Sourcepub fn kind(&self) -> Option<SinkholeListType>
pub fn kind(&self) -> Option<SinkholeListType>
list_type in its typed form, if this SDK version knows it.
Trait Implementations§
Source§impl Clone for SinkholeList
impl Clone for SinkholeList
Source§fn clone(&self) -> SinkholeList
fn clone(&self) -> SinkholeList
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more