#[non_exhaustive]pub struct SignalAssigneeUpdateRequest {
pub assignee: String,
pub version: Option<i64>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Attributes describing an assignee update operation over a security signal.
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.assignee: String
The UUID of the user being assigned. Use empty string to return signal to unassigned.
version: Option<i64>
Version of the updated signal. If server side version is higher, update will be rejected.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl SignalAssigneeUpdateRequest
impl SignalAssigneeUpdateRequest
Sourcepub fn new(assignee: String) -> SignalAssigneeUpdateRequest
pub fn new(assignee: String) -> SignalAssigneeUpdateRequest
Examples found in repository?
examples/v1_security-monitoring_EditSecurityMonitoringSignalAssignee.rs (line 8)
7async fn main() {
8 let body = SignalAssigneeUpdateRequest::new("773b045d-ccf8-4808-bd3b-955ef6a8c940".to_string());
9 let configuration = datadog::Configuration::new();
10 let api = SecurityMonitoringAPI::with_config(configuration);
11 let resp = api
12 .edit_security_monitoring_signal_assignee(
13 "AQAAAYDiB_Ol8PbzFAAAAABBWURpQl9PbEFBQU0yeXhGTG9ZV2JnQUE".to_string(),
14 body,
15 )
16 .await;
17 if let Ok(value) = resp {
18 println!("{:#?}", value);
19 } else {
20 println!("{:#?}", resp.unwrap_err());
21 }
22}
pub fn version(self, value: i64) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for SignalAssigneeUpdateRequest
impl Clone for SignalAssigneeUpdateRequest
Source§fn clone(&self) -> SignalAssigneeUpdateRequest
fn clone(&self) -> SignalAssigneeUpdateRequest
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 SignalAssigneeUpdateRequest
impl Debug for SignalAssigneeUpdateRequest
Source§impl<'de> Deserialize<'de> for SignalAssigneeUpdateRequest
impl<'de> Deserialize<'de> for SignalAssigneeUpdateRequest
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
impl StructuralPartialEq for SignalAssigneeUpdateRequest
Auto Trait Implementations§
impl Freeze for SignalAssigneeUpdateRequest
impl RefUnwindSafe for SignalAssigneeUpdateRequest
impl Send for SignalAssigneeUpdateRequest
impl Sync for SignalAssigneeUpdateRequest
impl Unpin for SignalAssigneeUpdateRequest
impl UnwindSafe for SignalAssigneeUpdateRequest
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