#[non_exhaustive]pub struct FastlyAccountCreateRequest {
pub data: FastlyAccountCreateRequestData,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Payload schema when adding a Fastly 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: FastlyAccountCreateRequestData
Data object for creating a Fastly account.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl FastlyAccountCreateRequest
impl FastlyAccountCreateRequest
Sourcepub fn new(data: FastlyAccountCreateRequestData) -> FastlyAccountCreateRequest
pub fn new(data: FastlyAccountCreateRequestData) -> FastlyAccountCreateRequest
Examples found in repository?
examples/v2_fastly-integration_CreateFastlyAccount.rs (lines 11-18)
10async fn main() {
11 let body = FastlyAccountCreateRequest::new(FastlyAccountCreateRequestData::new(
12 FastlyAccountCreateRequestAttributes::new(
13 "ExampleFastlyIntegration".to_string(),
14 "Example-Fastly-Integration".to_string(),
15 )
16 .services(vec![]),
17 FastlyAccountType::FASTLY_ACCOUNTS,
18 ));
19 let configuration = datadog::Configuration::new();
20 let api = FastlyIntegrationAPI::with_config(configuration);
21 let resp = api.create_fastly_account(body).await;
22 if let Ok(value) = resp {
23 println!("{:#?}", value);
24 } else {
25 println!("{:#?}", resp.unwrap_err());
26 }
27}
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for FastlyAccountCreateRequest
impl Clone for FastlyAccountCreateRequest
Source§fn clone(&self) -> FastlyAccountCreateRequest
fn clone(&self) -> FastlyAccountCreateRequest
Returns a copy 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 FastlyAccountCreateRequest
impl Debug for FastlyAccountCreateRequest
Source§impl<'de> Deserialize<'de> for FastlyAccountCreateRequest
impl<'de> Deserialize<'de> for FastlyAccountCreateRequest
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 FastlyAccountCreateRequest
Auto Trait Implementations§
impl Freeze for FastlyAccountCreateRequest
impl RefUnwindSafe for FastlyAccountCreateRequest
impl Send for FastlyAccountCreateRequest
impl Sync for FastlyAccountCreateRequest
impl Unpin for FastlyAccountCreateRequest
impl UnwindSafe for FastlyAccountCreateRequest
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