#[non_exhaustive]pub struct OrgConnectionCreateRequest {
pub data: OrgConnectionCreate,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Request to create an org connection.
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.data: OrgConnectionCreate
Org connection creation data.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl OrgConnectionCreateRequest
impl OrgConnectionCreateRequest
Sourcepub fn new(data: OrgConnectionCreate) -> OrgConnectionCreateRequest
pub fn new(data: OrgConnectionCreate) -> OrgConnectionCreateRequest
Examples found in repository?
examples/v2_org-connections_CreateOrgConnections.rs (lines 16-26)
15async fn main() {
16 let body = OrgConnectionCreateRequest::new(OrgConnectionCreate::new(
17 OrgConnectionCreateAttributes::new(vec![OrgConnectionTypeEnum::LOGS]),
18 OrgConnectionCreateRelationships::new(
19 OrgConnectionOrgRelationship::new().data(
20 OrgConnectionOrgRelationshipData::new()
21 .id("83999dcd-7f97-11f0-8de1-1ecf66f1aa85".to_string())
22 .type_(OrgConnectionOrgRelationshipDataType::ORGS),
23 ),
24 ),
25 OrgConnectionType::ORG_CONNECTION,
26 ));
27 let configuration = datadog::Configuration::new();
28 let api = OrgConnectionsAPI::with_config(configuration);
29 let resp = api.create_org_connections(body).await;
30 if let Ok(value) = resp {
31 println!("{:#?}", value);
32 } else {
33 println!("{:#?}", resp.unwrap_err());
34 }
35}
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for OrgConnectionCreateRequest
impl Clone for OrgConnectionCreateRequest
Source§fn clone(&self) -> OrgConnectionCreateRequest
fn clone(&self) -> OrgConnectionCreateRequest
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 OrgConnectionCreateRequest
impl Debug for OrgConnectionCreateRequest
Source§impl<'de> Deserialize<'de> for OrgConnectionCreateRequest
impl<'de> Deserialize<'de> for OrgConnectionCreateRequest
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 OrgConnectionCreateRequest
Auto Trait Implementations§
impl Freeze for OrgConnectionCreateRequest
impl RefUnwindSafe for OrgConnectionCreateRequest
impl Send for OrgConnectionCreateRequest
impl Sync for OrgConnectionCreateRequest
impl Unpin for OrgConnectionCreateRequest
impl UnwindSafe for OrgConnectionCreateRequest
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