#[non_exhaustive]pub struct SyntheticMonitorTarget {
pub target: Option<Target>,
}Expand description
Describes a Synthetic Monitor to be invoked by Uptime.
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.target: Option<Target>Specifies a Synthetic Monitor’s execution stack.
Implementations§
Source§impl SyntheticMonitorTarget
impl SyntheticMonitorTarget
Sourcepub fn set_target<T: Into<Option<Target>>>(self, v: T) -> Self
pub fn set_target<T: Into<Option<Target>>>(self, v: T) -> Self
Sets the value of target.
Sourcepub fn get_cloud_function_v2(&self) -> Option<&Box<CloudFunctionV2Target>>
pub fn get_cloud_function_v2(&self) -> Option<&Box<CloudFunctionV2Target>>
The value of target
if it holds a CloudFunctionV2, None if the field is not set or
holds a different branch.
Sourcepub fn set_cloud_function_v2<T: Into<Box<CloudFunctionV2Target>>>(
self,
v: T,
) -> Self
pub fn set_cloud_function_v2<T: Into<Box<CloudFunctionV2Target>>>( self, v: T, ) -> Self
Sets the value of target
to hold a CloudFunctionV2.
Note that all the setters affecting target are
mutually exclusive.
Trait Implementations§
Source§impl Clone for SyntheticMonitorTarget
impl Clone for SyntheticMonitorTarget
Source§fn clone(&self) -> SyntheticMonitorTarget
fn clone(&self) -> SyntheticMonitorTarget
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 SyntheticMonitorTarget
impl Debug for SyntheticMonitorTarget
Source§impl Default for SyntheticMonitorTarget
impl Default for SyntheticMonitorTarget
Source§fn default() -> SyntheticMonitorTarget
fn default() -> SyntheticMonitorTarget
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SyntheticMonitorTargetwhere
SyntheticMonitorTarget: Default,
impl<'de> Deserialize<'de> for SyntheticMonitorTargetwhere
SyntheticMonitorTarget: Default,
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 Message for SyntheticMonitorTarget
impl Message for SyntheticMonitorTarget
Source§impl PartialEq for SyntheticMonitorTarget
impl PartialEq for SyntheticMonitorTarget
Source§impl Serialize for SyntheticMonitorTarget
impl Serialize for SyntheticMonitorTarget
impl StructuralPartialEq for SyntheticMonitorTarget
Auto Trait Implementations§
impl Freeze for SyntheticMonitorTarget
impl RefUnwindSafe for SyntheticMonitorTarget
impl Send for SyntheticMonitorTarget
impl Sync for SyntheticMonitorTarget
impl Unpin for SyntheticMonitorTarget
impl UnwindSafe for SyntheticMonitorTarget
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