#[non_exhaustive]pub struct InterconnectAttachmentPartnerMetadata {
pub interconnect_name: Option<String>,
pub partner_name: Option<String>,
pub portal_url: Option<String>,
/* private fields */
}interconnect-attachments only.Expand description
Informational metadata about Partner attachments from Partners to display to customers. These fields are propagated from PARTNER_PROVIDER attachments to their corresponding PARTNER attachments.
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.interconnect_name: Option<String>Plain text name of the Interconnect this attachment is connected to, as displayed in the Partner’s portal. For instance “Chicago 1”. This value may be validated to match approved Partner values.
partner_name: Option<String>Plain text name of the Partner providing this attachment. This value may be validated to match approved Partner values.
portal_url: Option<String>URL of the Partner’s portal for this Attachment. Partners may customise this to be a deep link to the specific resource on the Partner portal. This value may be validated to match approved Partner values.
Implementations§
Source§impl InterconnectAttachmentPartnerMetadata
impl InterconnectAttachmentPartnerMetadata
pub fn new() -> Self
Sourcepub fn set_interconnect_name<T>(self, v: T) -> Self
pub fn set_interconnect_name<T>(self, v: T) -> Self
Sets the value of interconnect_name.
§Example
let x = InterconnectAttachmentPartnerMetadata::new().set_interconnect_name("example");Sourcepub fn set_or_clear_interconnect_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_interconnect_name<T>(self, v: Option<T>) -> Self
Sets or clears the value of interconnect_name.
§Example
let x = InterconnectAttachmentPartnerMetadata::new().set_or_clear_interconnect_name(Some("example"));
let x = InterconnectAttachmentPartnerMetadata::new().set_or_clear_interconnect_name(None::<String>);Sourcepub fn set_partner_name<T>(self, v: T) -> Self
pub fn set_partner_name<T>(self, v: T) -> Self
Sets the value of partner_name.
§Example
let x = InterconnectAttachmentPartnerMetadata::new().set_partner_name("example");Sourcepub fn set_or_clear_partner_name<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_partner_name<T>(self, v: Option<T>) -> Self
Sets or clears the value of partner_name.
§Example
let x = InterconnectAttachmentPartnerMetadata::new().set_or_clear_partner_name(Some("example"));
let x = InterconnectAttachmentPartnerMetadata::new().set_or_clear_partner_name(None::<String>);Sourcepub fn set_portal_url<T>(self, v: T) -> Self
pub fn set_portal_url<T>(self, v: T) -> Self
Sets the value of portal_url.
§Example
let x = InterconnectAttachmentPartnerMetadata::new().set_portal_url("example");Sourcepub fn set_or_clear_portal_url<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_portal_url<T>(self, v: Option<T>) -> Self
Sets or clears the value of portal_url.
§Example
let x = InterconnectAttachmentPartnerMetadata::new().set_or_clear_portal_url(Some("example"));
let x = InterconnectAttachmentPartnerMetadata::new().set_or_clear_portal_url(None::<String>);Trait Implementations§
Source§impl Clone for InterconnectAttachmentPartnerMetadata
impl Clone for InterconnectAttachmentPartnerMetadata
Source§fn clone(&self) -> InterconnectAttachmentPartnerMetadata
fn clone(&self) -> InterconnectAttachmentPartnerMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for InterconnectAttachmentPartnerMetadata
impl Default for InterconnectAttachmentPartnerMetadata
Source§fn default() -> InterconnectAttachmentPartnerMetadata
fn default() -> InterconnectAttachmentPartnerMetadata
Source§impl PartialEq for InterconnectAttachmentPartnerMetadata
impl PartialEq for InterconnectAttachmentPartnerMetadata
Source§fn eq(&self, other: &InterconnectAttachmentPartnerMetadata) -> bool
fn eq(&self, other: &InterconnectAttachmentPartnerMetadata) -> bool
self and other values to be equal, and is used by ==.