#[non_exhaustive]pub struct OrgConnectionCreateRelationships {
pub sink_org: OrgConnectionOrgRelationship,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Relationships for org connection creation.
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.sink_org: OrgConnectionOrgRelationship
Org relationship.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl OrgConnectionCreateRelationships
impl OrgConnectionCreateRelationships
Sourcepub fn new(
sink_org: OrgConnectionOrgRelationship,
) -> OrgConnectionCreateRelationships
pub fn new( sink_org: OrgConnectionOrgRelationship, ) -> OrgConnectionCreateRelationships
Examples found in repository?
examples/v2_org-connections_CreateOrgConnections.rs (lines 18-24)
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 OrgConnectionCreateRelationships
impl Clone for OrgConnectionCreateRelationships
Source§fn clone(&self) -> OrgConnectionCreateRelationships
fn clone(&self) -> OrgConnectionCreateRelationships
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 OrgConnectionCreateRelationships
impl<'de> Deserialize<'de> for OrgConnectionCreateRelationships
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 OrgConnectionCreateRelationships
impl PartialEq for OrgConnectionCreateRelationships
Source§fn eq(&self, other: &OrgConnectionCreateRelationships) -> bool
fn eq(&self, other: &OrgConnectionCreateRelationships) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for OrgConnectionCreateRelationships
Auto Trait Implementations§
impl Freeze for OrgConnectionCreateRelationships
impl RefUnwindSafe for OrgConnectionCreateRelationships
impl Send for OrgConnectionCreateRelationships
impl Sync for OrgConnectionCreateRelationships
impl Unpin for OrgConnectionCreateRelationships
impl UnwindSafe for OrgConnectionCreateRelationships
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