#[non_exhaustive]pub struct OktaAccountUpdateRequest {
pub data: OktaAccountUpdateRequestData,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Payload schema when updating an Okta account.
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: OktaAccountUpdateRequestData
Data object for updating an Okta account.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl OktaAccountUpdateRequest
impl OktaAccountUpdateRequest
Sourcepub fn new(data: OktaAccountUpdateRequestData) -> OktaAccountUpdateRequest
pub fn new(data: OktaAccountUpdateRequestData) -> OktaAccountUpdateRequest
Examples found in repository?
examples/v2_okta-integration_UpdateOktaAccount.rs (lines 13-24)
10async fn main() {
11 // there is a valid "okta_account" in the system
12 let okta_account_data_id = std::env::var("OKTA_ACCOUNT_DATA_ID").unwrap();
13 let body = OktaAccountUpdateRequest::new(
14 OktaAccountUpdateRequestData::new()
15 .attributes(
16 OktaAccountUpdateRequestAttributes::new(
17 "oauth".to_string(),
18 "https://example.okta.com/".to_string(),
19 )
20 .client_id("client_id".to_string())
21 .client_secret("client_secret".to_string()),
22 )
23 .type_(OktaAccountType::OKTA_ACCOUNTS),
24 );
25 let configuration = datadog::Configuration::new();
26 let api = OktaIntegrationAPI::with_config(configuration);
27 let resp = api
28 .update_okta_account(okta_account_data_id.clone(), body)
29 .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 OktaAccountUpdateRequest
impl Clone for OktaAccountUpdateRequest
Source§fn clone(&self) -> OktaAccountUpdateRequest
fn clone(&self) -> OktaAccountUpdateRequest
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 OktaAccountUpdateRequest
impl Debug for OktaAccountUpdateRequest
Source§impl<'de> Deserialize<'de> for OktaAccountUpdateRequest
impl<'de> Deserialize<'de> for OktaAccountUpdateRequest
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 OktaAccountUpdateRequest
impl PartialEq for OktaAccountUpdateRequest
Source§impl Serialize for OktaAccountUpdateRequest
impl Serialize for OktaAccountUpdateRequest
impl StructuralPartialEq for OktaAccountUpdateRequest
Auto Trait Implementations§
impl Freeze for OktaAccountUpdateRequest
impl RefUnwindSafe for OktaAccountUpdateRequest
impl Send for OktaAccountUpdateRequest
impl Sync for OktaAccountUpdateRequest
impl Unpin for OktaAccountUpdateRequest
impl UnwindSafe for OktaAccountUpdateRequest
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