Struct rusoto_lightsail::ContactMethod
source · [−]pub struct ContactMethod {
pub arn: Option<String>,
pub contact_endpoint: Option<String>,
pub created_at: Option<f64>,
pub location: Option<ResourceLocation>,
pub name: Option<String>,
pub protocol: Option<String>,
pub resource_type: Option<String>,
pub status: Option<String>,
pub support_code: Option<String>,
}
Expand description
Describes a contact method.
A contact method is a way to send you notifications. For more information, see Notifications in Amazon Lightsail.
Fields
arn: Option<String>
The Amazon Resource Name (ARN) of the contact method.
contact_endpoint: Option<String>
The destination of the contact method, such as an email address or a mobile phone number.
created_at: Option<f64>
The timestamp when the contact method was created.
location: Option<ResourceLocation>
name: Option<String>
The name of the contact method.
protocol: Option<String>
The protocol of the contact method, such as email or SMS (text messaging).
resource_type: Option<String>
The Lightsail resource type (e.g., ContactMethod
).
status: Option<String>
The current status of the contact method.
A contact method has the following possible status:
-
PendingVerification
- The contact method has not yet been verified, and the verification has not yet expired. -
Valid
- The contact method has been verified. -
InValid
- An attempt was made to verify the contact method, but the verification has expired.
support_code: Option<String>
The support code. Include this code in your email to support when you have questions about your Lightsail contact method. This code enables our support team to look up your Lightsail information more easily.
Trait Implementations
sourceimpl Clone for ContactMethod
impl Clone for ContactMethod
sourcefn clone(&self) -> ContactMethod
fn clone(&self) -> ContactMethod
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ContactMethod
impl Debug for ContactMethod
sourceimpl Default for ContactMethod
impl Default for ContactMethod
sourcefn default() -> ContactMethod
fn default() -> ContactMethod
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ContactMethod
impl<'de> Deserialize<'de> for ContactMethod
sourcefn 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
sourceimpl PartialEq<ContactMethod> for ContactMethod
impl PartialEq<ContactMethod> for ContactMethod
sourcefn eq(&self, other: &ContactMethod) -> bool
fn eq(&self, other: &ContactMethod) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ContactMethod) -> bool
fn ne(&self, other: &ContactMethod) -> bool
This method tests for !=
.
impl StructuralPartialEq for ContactMethod
Auto Trait Implementations
impl RefUnwindSafe for ContactMethod
impl Send for ContactMethod
impl Sync for ContactMethod
impl Unpin for ContactMethod
impl UnwindSafe for ContactMethod
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more