pub struct ItemEdit { /* private fields */ }Expand description
Changes to an existing item for Exceptions::update_item, created by
ExceptionItem::edit.
Kibana overwrites the item, so the edit starts from its writable fields as
they were read. Comments are append-only: existing comments are always kept,
and only comments added with add_comment are sent. An item
changed since it was read fails with HTTP 409; read it again and reapply the
change rather than retrying the same edit.
Implementations§
Source§impl ItemEdit
impl ItemEdit
pub fn name(self, name: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Sourcepub fn entries(self, entries: impl IntoIterator<Item = Entry>) -> Self
pub fn entries(self, entries: impl IntoIterator<Item = Entry>) -> Self
Replaces every entry. Entries are combined with AND.
pub fn os_types(self, os_types: Vec<OsType>) -> Self
Sourcepub fn add_comment(self, comment: impl Into<String>) -> Self
pub fn add_comment(self, comment: impl Into<String>) -> Self
Appends a comment to the item’s existing comments.
Sourcepub fn expire_time(self, time: impl Into<String>) -> Self
pub fn expire_time(self, time: impl Into<String>) -> Self
An ISO 8601 time after which the item no longer applies.
pub fn meta(self, meta: Map<String, Value>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ItemEdit
impl RefUnwindSafe for ItemEdit
impl Send for ItemEdit
impl Sync for ItemEdit
impl Unpin for ItemEdit
impl UnsafeUnpin for ItemEdit
impl UnwindSafe for ItemEdit
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