pub struct Exceptions<'a>(/* private fields */);Implementations§
Source§impl<'a> Exceptions<'a>
impl<'a> Exceptions<'a>
Sourcepub fn create_list<B: Serialize + ?Sized>(&self, list: &B) -> CreateList<'a>
pub fn create_list<B: Serialize + ?Sized>(&self, list: &B) -> CreateList<'a>
Creates a list from a NewList or equivalent JSON.
Sourcepub fn get_list<'l>(&self, list: impl Into<ListTarget<'l>>) -> GetList<'a>
pub fn get_list<'l>(&self, list: impl Into<ListTarget<'l>>) -> GetList<'a>
Reads a list by ListSelector or from a retrieved ExceptionList.
Sourcepub fn update_list(&self, list: &ListEdit) -> UpdateList<'a>
pub fn update_list(&self, list: &ListEdit) -> UpdateList<'a>
Replaces the editable fields of the list the edit was created from. A
list changed since it was read fails with HTTP 409. A missing or empty
concurrency token fails locally with crate::Error::InvalidRequest.
Sourcepub fn delete_list<'l>(&self, list: impl Into<ListTarget<'l>>) -> DeleteList<'a>
pub fn delete_list<'l>(&self, list: impl Into<ListTarget<'l>>) -> DeleteList<'a>
Deletes the list and its items. Detach it from rules first.
pub fn find_lists(&self) -> FindLists<'a>
Sourcepub fn create_item<B: Serialize + ?Sized>(&self, item: &B) -> CreateItem<'a>
pub fn create_item<B: Serialize + ?Sized>(&self, item: &B) -> CreateItem<'a>
Creates an item from a NewItem or equivalent JSON.
Sourcepub fn get_item<'i>(&self, item: impl Into<ItemTarget<'i>>) -> GetItem<'a>
pub fn get_item<'i>(&self, item: impl Into<ItemTarget<'i>>) -> GetItem<'a>
Reads an item by ItemSelector or from a retrieved ExceptionItem.
Sourcepub fn update_item(&self, item: &ItemEdit) -> UpdateItem<'a>
pub fn update_item(&self, item: &ItemEdit) -> UpdateItem<'a>
Replaces the editable fields of the item the edit was created from and
appends its new comments. An item changed since it was read fails with HTTP 409.
A missing or empty concurrency token fails locally with crate::Error::InvalidRequest.
pub fn delete_item<'i>(&self, item: impl Into<ItemTarget<'i>>) -> DeleteItem<'a>
Sourcepub fn find_items<'l>(&self, list: impl Into<ItemsOf<'l>>) -> FindItems<'a>
pub fn find_items<'l>(&self, list: impl Into<ItemsOf<'l>>) -> FindItems<'a>
One page of items from one list, given by list_id or as a retrieved
ExceptionList, which also selects its namespace.
Kibana splits list IDs and filters on commas after URL decoding, so literal commas in these values are not supported.
Sourcepub fn summary<'l>(&self, list: impl Into<ListTarget<'l>>) -> Summary<'a>
pub fn summary<'l>(&self, list: impl Into<ListTarget<'l>>) -> Summary<'a>
Item counts per operating system. Lists without OS-tagged items can report
total: 0; use find_items for the item count.
pub fn duplicate_list( &self, list_id: &str, namespace: NamespaceType, include_expired: bool, ) -> DuplicateList<'a>
Sourcepub fn export_list(
&self,
list: &ListReference,
include_expired: bool,
) -> ExportList<'a>
pub fn export_list( &self, list: &ListReference, include_expired: bool, ) -> ExportList<'a>
Exports the list and its items as NDJSON.
Sourcepub fn import_lists(&self, ndjson: impl Into<Vec<u8>>) -> ImportLists<'a>
pub fn import_lists(&self, ndjson: impl Into<Vec<u8>>) -> ImportLists<'a>
Imports NDJSON lists and items. Partial failures are reported with HTTP 200.
Imports can regenerate saved-object IDs; read back by list_id afterwards.