pub struct CreateStreamOptions {
pub title: String,
pub description: String,
pub index_set_id: Option<String>,
pub rules: Vec<StreamRule>,
pub matching_type: Option<String>,
pub remove_matches_from_default_stream: bool,
pub disabled: bool,
}Expand description
Description of a new stream (GraylogClient::create_stream). title is required.
Fields§
§title: StringTitle.
description: StringDescription.
index_set_id: Option<String>Target index set (default: the default index set, else the first one).
rules: Vec<StreamRule>Routing rules.
matching_type: Option<String>AND (default: every rule must match) or OR.
remove_matches_from_default_stream: boolWhether matches leave the default stream.
disabled: boolKeeps the new stream paused (Graylog creates streams paused; create_stream resumes them
unless this is set).
Implementations§
Trait Implementations§
Source§impl Clone for CreateStreamOptions
impl Clone for CreateStreamOptions
Source§impl Debug for CreateStreamOptions
impl Debug for CreateStreamOptions
Source§impl Default for CreateStreamOptions
impl Default for CreateStreamOptions
Source§impl PartialEq for CreateStreamOptions
impl PartialEq for CreateStreamOptions
impl StructuralPartialEq for CreateStreamOptions
Auto Trait Implementations§
impl Forget for CreateStreamOptions
impl Freeze for CreateStreamOptions
impl Move for CreateStreamOptions
impl RefUnwindSafe for CreateStreamOptions
impl Send for CreateStreamOptions
impl Sync for CreateStreamOptions
impl Unpin for CreateStreamOptions
impl UnsafeUnpin for CreateStreamOptions
impl UnwindSafe for CreateStreamOptions
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