#[non_exhaustive]pub struct GetInterfacesOptionalParams {
pub get_ip_addresses: Option<bool>,
}
Expand description
GetInterfacesOptionalParams is a struct for passing parameters to the method NetworkDeviceMonitoringAPI::get_interfaces
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.get_ip_addresses: Option<bool>
Whether to get the IP addresses of the interfaces.
Implementations§
Source§impl GetInterfacesOptionalParams
impl GetInterfacesOptionalParams
Sourcepub fn get_ip_addresses(self, value: bool) -> Self
pub fn get_ip_addresses(self, value: bool) -> Self
Whether to get the IP addresses of the interfaces.
Examples found in repository?
examples/v2_network-device-monitoring_GetInterfaces.rs (line 13)
7async fn main() {
8 let configuration = datadog::Configuration::new();
9 let api = NetworkDeviceMonitoringAPI::with_config(configuration);
10 let resp = api
11 .get_interfaces(
12 "default:1.2.3.4".to_string(),
13 GetInterfacesOptionalParams::default().get_ip_addresses(true),
14 )
15 .await;
16 if let Ok(value) = resp {
17 println!("{:#?}", value);
18 } else {
19 println!("{:#?}", resp.unwrap_err());
20 }
21}
Trait Implementations§
Source§impl Clone for GetInterfacesOptionalParams
impl Clone for GetInterfacesOptionalParams
Source§fn clone(&self) -> GetInterfacesOptionalParams
fn clone(&self) -> GetInterfacesOptionalParams
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GetInterfacesOptionalParams
impl Debug for GetInterfacesOptionalParams
Source§impl Default for GetInterfacesOptionalParams
impl Default for GetInterfacesOptionalParams
Source§fn default() -> GetInterfacesOptionalParams
fn default() -> GetInterfacesOptionalParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GetInterfacesOptionalParams
impl RefUnwindSafe for GetInterfacesOptionalParams
impl Send for GetInterfacesOptionalParams
impl Sync for GetInterfacesOptionalParams
impl Unpin for GetInterfacesOptionalParams
impl UnwindSafe for GetInterfacesOptionalParams
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