#[non_exhaustive]pub struct UpdateProbeInput {
pub monitor_name: Option<String>,
pub probe_id: Option<String>,
pub state: Option<ProbeState>,
pub destination: Option<String>,
pub destination_port: Option<i32>,
pub protocol: Option<Protocol>,
pub packet_size: Option<i32>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.monitor_name: Option<String>
The name of the monitor that the probe was updated for.
probe_id: Option<String>
The ID of the probe to update.
state: Option<ProbeState>
The state of the probe update.
destination: Option<String>
The updated IP address for the probe destination. This must be either an IPv4 or IPv6 address.
destination_port: Option<i32>
The updated port for the probe destination. This is required only if the protocol
is TCP
and must be a number between 1
and 65536
.
protocol: Option<Protocol>
The updated network protocol for the destination. This can be either TCP
or ICMP
. If the protocol is TCP
, then port
is also required.
packet_size: Option<i32>
he updated packets size for network traffic between the source and destination. This must be a number between 56
and 8500
.
Implementations§
source§impl UpdateProbeInput
impl UpdateProbeInput
sourcepub fn monitor_name(&self) -> Option<&str>
pub fn monitor_name(&self) -> Option<&str>
The name of the monitor that the probe was updated for.
sourcepub fn state(&self) -> Option<&ProbeState>
pub fn state(&self) -> Option<&ProbeState>
The state of the probe update.
sourcepub fn destination(&self) -> Option<&str>
pub fn destination(&self) -> Option<&str>
The updated IP address for the probe destination. This must be either an IPv4 or IPv6 address.
sourcepub fn destination_port(&self) -> Option<i32>
pub fn destination_port(&self) -> Option<i32>
The updated port for the probe destination. This is required only if the protocol
is TCP
and must be a number between 1
and 65536
.
sourcepub fn protocol(&self) -> Option<&Protocol>
pub fn protocol(&self) -> Option<&Protocol>
The updated network protocol for the destination. This can be either TCP
or ICMP
. If the protocol is TCP
, then port
is also required.
sourcepub fn packet_size(&self) -> Option<i32>
pub fn packet_size(&self) -> Option<i32>
he updated packets size for network traffic between the source and destination. This must be a number between 56
and 8500
.
source§impl UpdateProbeInput
impl UpdateProbeInput
sourcepub fn builder() -> UpdateProbeInputBuilder
pub fn builder() -> UpdateProbeInputBuilder
Creates a new builder-style object to manufacture UpdateProbeInput
.
Trait Implementations§
source§impl Clone for UpdateProbeInput
impl Clone for UpdateProbeInput
source§fn clone(&self) -> UpdateProbeInput
fn clone(&self) -> UpdateProbeInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateProbeInput
impl Debug for UpdateProbeInput
source§impl PartialEq for UpdateProbeInput
impl PartialEq for UpdateProbeInput
source§fn eq(&self, other: &UpdateProbeInput) -> bool
fn eq(&self, other: &UpdateProbeInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateProbeInput
Auto Trait Implementations§
impl Freeze for UpdateProbeInput
impl RefUnwindSafe for UpdateProbeInput
impl Send for UpdateProbeInput
impl Sync for UpdateProbeInput
impl Unpin for UpdateProbeInput
impl UnwindSafe for UpdateProbeInput
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more