#[non_exhaustive]pub struct IssueUpdateAssigneeRequestData {
pub id: String,
pub type_: IssueUpdateAssigneeRequestDataType,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Update issue assignee request.
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.id: String
User identifier.
type_: IssueUpdateAssigneeRequestDataType
Type of the object.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl IssueUpdateAssigneeRequestData
impl IssueUpdateAssigneeRequestData
Sourcepub fn new(
id: String,
type_: IssueUpdateAssigneeRequestDataType,
) -> IssueUpdateAssigneeRequestData
pub fn new( id: String, type_: IssueUpdateAssigneeRequestDataType, ) -> IssueUpdateAssigneeRequestData
Examples found in repository?
examples/v2_error-tracking_UpdateIssueAssignee.rs (lines 12-15)
9async fn main() {
10 // there is a valid "issue" in the system
11 let issue_id = std::env::var("ISSUE_ID").unwrap();
12 let body = IssueUpdateAssigneeRequest::new(IssueUpdateAssigneeRequestData::new(
13 "87cb11a0-278c-440a-99fe-701223c80296".to_string(),
14 IssueUpdateAssigneeRequestDataType::ASSIGNEE,
15 ));
16 let configuration = datadog::Configuration::new();
17 let api = ErrorTrackingAPI::with_config(configuration);
18 let resp = api.update_issue_assignee(issue_id.clone(), body).await;
19 if let Ok(value) = resp {
20 println!("{:#?}", value);
21 } else {
22 println!("{:#?}", resp.unwrap_err());
23 }
24}
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for IssueUpdateAssigneeRequestData
impl Clone for IssueUpdateAssigneeRequestData
Source§fn clone(&self) -> IssueUpdateAssigneeRequestData
fn clone(&self) -> IssueUpdateAssigneeRequestData
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<'de> Deserialize<'de> for IssueUpdateAssigneeRequestData
impl<'de> Deserialize<'de> for IssueUpdateAssigneeRequestData
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 IssueUpdateAssigneeRequestData
impl PartialEq for IssueUpdateAssigneeRequestData
Source§fn eq(&self, other: &IssueUpdateAssigneeRequestData) -> bool
fn eq(&self, other: &IssueUpdateAssigneeRequestData) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for IssueUpdateAssigneeRequestData
Auto Trait Implementations§
impl Freeze for IssueUpdateAssigneeRequestData
impl RefUnwindSafe for IssueUpdateAssigneeRequestData
impl Send for IssueUpdateAssigneeRequestData
impl Sync for IssueUpdateAssigneeRequestData
impl Unpin for IssueUpdateAssigneeRequestData
impl UnwindSafe for IssueUpdateAssigneeRequestData
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