#[non_exhaustive]pub struct ExceptionList {
pub id: String,
pub list_id: String,
pub name: String,
pub description: String,
pub namespace_type: NamespaceType,
pub list_type: String,
pub revision: Option<String>,
pub tags: Vec<String>,
pub os_types: Vec<OsType>,
pub meta: Option<Map<String, Value>>,
pub extra: Map<String, Value>,
}Expand description
A retrieved exception list. Use Self::edit to retain its writable fields on update.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringKibana saved-object ID, distinct from the portable list_id.
list_id: StringStable list identifier used in rule associations and item membership.
name: String§description: String§namespace_type: NamespaceType§list_type: String§revision: Option<String>Opaque concurrency token, distinct from the user-defined version.
os_types: Vec<OsType>§meta: Option<Map<String, Value>>§extra: Map<String, Value>Implementations§
Source§impl ExceptionList
impl ExceptionList
pub fn reference(&self) -> ListReference
Sourcepub fn edit(&self) -> ListEdit
pub fn edit(&self) -> ListEdit
A replacement for this list that keeps its current editable fields until changed, bound to its ID, namespace and concurrency token. Sending the edit fails locally if the retrieved token is missing or empty.
use security_client_rs::exceptions::ListSelector;
let exceptions = client.exceptions();
let list = exceptions.get_list(ListSelector::Id("list-id")).send().await?.json().await?;
let edit = list.edit().name("Renamed list");
exceptions.update_list(&edit).send().await?;Trait Implementations§
Source§impl Clone for ExceptionList
impl Clone for ExceptionList
Source§impl Debug for ExceptionList
impl Debug for ExceptionList
Source§impl<'de> Deserialize<'de> for ExceptionList
impl<'de> Deserialize<'de> for ExceptionList
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
Source§impl<'a> From<&'a ExceptionList> for ListTarget<'a>
impl<'a> From<&'a ExceptionList> for ListTarget<'a>
Source§fn from(list: &'a ExceptionList) -> Self
fn from(list: &'a ExceptionList) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a ExceptionList> for ItemsOf<'a>
impl<'a> From<&'a ExceptionList> for ItemsOf<'a>
Source§fn from(list: &'a ExceptionList) -> Self
fn from(list: &'a ExceptionList) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ExceptionList
impl RefUnwindSafe for ExceptionList
impl Send for ExceptionList
impl Sync for ExceptionList
impl Unpin for ExceptionList
impl UnsafeUnpin for ExceptionList
impl UnwindSafe for ExceptionList
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