pub struct NewList { /* private fields */ }Expand description
A list definition for Exceptions::create_list. To change an existing
list, use ExceptionList::edit.
Implementations§
Source§impl NewList
impl NewList
Sourcepub fn new(
name: impl Into<String>,
description: impl Into<String>,
list_type: impl Into<String>,
) -> Self
pub fn new( name: impl Into<String>, description: impl Into<String>, list_type: impl Into<String>, ) -> Self
list_type is detection, rule_default or an Endpoint artifact type.
Sourcepub fn detection(
name: impl Into<String>,
description: impl Into<String>,
) -> Self
pub fn detection( name: impl Into<String>, description: impl Into<String>, ) -> Self
A shared detection list in the current space.
pub fn namespace_type(self, namespace: NamespaceType) -> Self
Sourcepub fn list_id(self, list_id: impl Into<String>) -> Self
pub fn list_id(self, list_id: impl Into<String>) -> Self
A stable human-readable identifier, generated by Kibana when omitted.
pub fn os_types(self, os_types: Vec<OsType>) -> Self
Sourcepub fn version(self, version: u64) -> Self
pub fn version(self, version: u64) -> Self
A user-defined version number, unrelated to the concurrency token.
pub fn meta(self, meta: Map<String, Value>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NewList
impl RefUnwindSafe for NewList
impl Send for NewList
impl Sync for NewList
impl Unpin for NewList
impl UnsafeUnpin for NewList
impl UnwindSafe for NewList
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