#[non_exhaustive]pub struct FastlyAccountCreateRequestData {
pub attributes: FastlyAccountCreateRequestAttributes,
pub type_: FastlyAccountType,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
Data object for creating 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.attributes: FastlyAccountCreateRequestAttributes
Attributes object for creating a Fastly account.
type_: FastlyAccountType
The JSON:API type for this API. Should always be fastly-accounts
.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl FastlyAccountCreateRequestData
impl FastlyAccountCreateRequestData
Sourcepub fn new(
attributes: FastlyAccountCreateRequestAttributes,
type_: FastlyAccountType,
) -> FastlyAccountCreateRequestData
pub fn new( attributes: FastlyAccountCreateRequestAttributes, type_: FastlyAccountType, ) -> FastlyAccountCreateRequestData
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 FastlyAccountCreateRequestData
impl Clone for FastlyAccountCreateRequestData
Source§fn clone(&self) -> FastlyAccountCreateRequestData
fn clone(&self) -> FastlyAccountCreateRequestData
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 FastlyAccountCreateRequestData
impl<'de> Deserialize<'de> for FastlyAccountCreateRequestData
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 FastlyAccountCreateRequestData
impl PartialEq for FastlyAccountCreateRequestData
Source§fn eq(&self, other: &FastlyAccountCreateRequestData) -> bool
fn eq(&self, other: &FastlyAccountCreateRequestData) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for FastlyAccountCreateRequestData
Auto Trait Implementations§
impl Freeze for FastlyAccountCreateRequestData
impl RefUnwindSafe for FastlyAccountCreateRequestData
impl Send for FastlyAccountCreateRequestData
impl Sync for FastlyAccountCreateRequestData
impl Unpin for FastlyAccountCreateRequestData
impl UnwindSafe for FastlyAccountCreateRequestData
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