#[non_exhaustive]pub struct IpMapping {
pub type: SqlIpAddressType,
pub ip_address: String,
pub time_to_retire: Option<Timestamp>,
/* private fields */
}
Expand description
Database instance IP mapping
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.type: SqlIpAddressType
The type of this IP address. A PRIMARY
address is a public address that
can accept incoming connections. A PRIVATE
address is a private address
that can accept incoming connections. An OUTGOING
address is the source
address of connections originating from the instance, if supported.
ip_address: String
The IP address assigned.
time_to_retire: Option<Timestamp>
The due time for this IP to be retired in
RFC 3339 format, for example
2012-11-15T16:19:00.094Z
. This field is only available when
the IP is scheduled to be retired.
Implementations§
Source§impl IpMapping
impl IpMapping
pub fn new() -> Self
Sourcepub fn set_type<T: Into<SqlIpAddressType>>(self, v: T) -> Self
pub fn set_type<T: Into<SqlIpAddressType>>(self, v: T) -> Self
Sets the value of r#type.
Sourcepub fn set_ip_address<T: Into<String>>(self, v: T) -> Self
pub fn set_ip_address<T: Into<String>>(self, v: T) -> Self
Sets the value of ip_address.
Sourcepub fn set_time_to_retire<T>(self, v: T) -> Self
pub fn set_time_to_retire<T>(self, v: T) -> Self
Sets the value of time_to_retire.
Sourcepub fn set_or_clear_time_to_retire<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_time_to_retire<T>(self, v: Option<T>) -> Self
Sets or clears the value of time_to_retire.
Trait Implementations§
impl StructuralPartialEq for IpMapping
Auto Trait Implementations§
impl Freeze for IpMapping
impl RefUnwindSafe for IpMapping
impl Send for IpMapping
impl Sync for IpMapping
impl Unpin for IpMapping
impl UnwindSafe for IpMapping
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