#[non_exhaustive]pub struct LogsIndexesOrder {
pub index_names: Vec<String>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Object containing the ordered list of log index names.
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.index_names: Vec<String>
Array of strings identifying by their name(s) the index(es) of your organization. Logs are tested against the query filter of each index one by one, following the order of the array. Logs are eventually stored in the first matching index.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl LogsIndexesOrder
impl LogsIndexesOrder
Sourcepub fn new(index_names: Vec<String>) -> LogsIndexesOrder
pub fn new(index_names: Vec<String>) -> LogsIndexesOrder
Examples found in repository?
examples/v1_logs-indexes_UpdateLogsIndexOrder.rs (lines 8-12)
7async fn main() {
8 let body = LogsIndexesOrder::new(vec![
9 "main".to_string(),
10 "payments".to_string(),
11 "web".to_string(),
12 ]);
13 let configuration = datadog::Configuration::new();
14 let api = LogsIndexesAPI::with_config(configuration);
15 let resp = api.update_logs_index_order(body).await;
16 if let Ok(value) = resp {
17 println!("{:#?}", value);
18 } else {
19 println!("{:#?}", resp.unwrap_err());
20 }
21}
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for LogsIndexesOrder
impl Clone for LogsIndexesOrder
Source§fn clone(&self) -> LogsIndexesOrder
fn clone(&self) -> LogsIndexesOrder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LogsIndexesOrder
impl Debug for LogsIndexesOrder
Source§impl<'de> Deserialize<'de> for LogsIndexesOrder
impl<'de> Deserialize<'de> for LogsIndexesOrder
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 PartialEq for LogsIndexesOrder
impl PartialEq for LogsIndexesOrder
Source§impl Serialize for LogsIndexesOrder
impl Serialize for LogsIndexesOrder
impl StructuralPartialEq for LogsIndexesOrder
Auto Trait Implementations§
impl Freeze for LogsIndexesOrder
impl RefUnwindSafe for LogsIndexesOrder
impl Send for LogsIndexesOrder
impl Sync for LogsIndexesOrder
impl Unpin for LogsIndexesOrder
impl UnwindSafe for LogsIndexesOrder
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