#[non_exhaustive]pub struct InterconnectCircuitInfo {
pub customer_demarc_id: Option<String>,
pub google_circuit_id: Option<String>,
pub google_demarc_id: Option<String>,
/* private fields */
}Available on crate feature
interconnects only.Expand description
Describes a single physical circuit between the Customer and Google. CircuitInfo objects are created by Google, so all fields are output only.
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.customer_demarc_id: Option<String>Customer-side demarc ID for this circuit.
google_circuit_id: Option<String>Google-assigned unique ID for this circuit. Assigned at circuit turn-up.
google_demarc_id: Option<String>Google-side demarc ID for this circuit. Assigned at circuit turn-up and provided by Google to the customer in the LOA.
Implementations§
Source§impl InterconnectCircuitInfo
impl InterconnectCircuitInfo
pub fn new() -> Self
Sourcepub fn set_customer_demarc_id<T>(self, v: T) -> Self
pub fn set_customer_demarc_id<T>(self, v: T) -> Self
Sets the value of customer_demarc_id.
§Example
ⓘ
let x = InterconnectCircuitInfo::new().set_customer_demarc_id("example");Sourcepub fn set_or_clear_customer_demarc_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_customer_demarc_id<T>(self, v: Option<T>) -> Self
Sets or clears the value of customer_demarc_id.
§Example
ⓘ
let x = InterconnectCircuitInfo::new().set_or_clear_customer_demarc_id(Some("example"));
let x = InterconnectCircuitInfo::new().set_or_clear_customer_demarc_id(None::<String>);Sourcepub fn set_google_circuit_id<T>(self, v: T) -> Self
pub fn set_google_circuit_id<T>(self, v: T) -> Self
Sets the value of google_circuit_id.
§Example
ⓘ
let x = InterconnectCircuitInfo::new().set_google_circuit_id("example");Sourcepub fn set_or_clear_google_circuit_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_google_circuit_id<T>(self, v: Option<T>) -> Self
Sets or clears the value of google_circuit_id.
§Example
ⓘ
let x = InterconnectCircuitInfo::new().set_or_clear_google_circuit_id(Some("example"));
let x = InterconnectCircuitInfo::new().set_or_clear_google_circuit_id(None::<String>);Sourcepub fn set_google_demarc_id<T>(self, v: T) -> Self
pub fn set_google_demarc_id<T>(self, v: T) -> Self
Sets the value of google_demarc_id.
§Example
ⓘ
let x = InterconnectCircuitInfo::new().set_google_demarc_id("example");Sourcepub fn set_or_clear_google_demarc_id<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_google_demarc_id<T>(self, v: Option<T>) -> Self
Sets or clears the value of google_demarc_id.
§Example
ⓘ
let x = InterconnectCircuitInfo::new().set_or_clear_google_demarc_id(Some("example"));
let x = InterconnectCircuitInfo::new().set_or_clear_google_demarc_id(None::<String>);Trait Implementations§
Source§impl Clone for InterconnectCircuitInfo
impl Clone for InterconnectCircuitInfo
Source§fn clone(&self) -> InterconnectCircuitInfo
fn clone(&self) -> InterconnectCircuitInfo
Returns a duplicate 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 InterconnectCircuitInfo
impl Debug for InterconnectCircuitInfo
Source§impl Default for InterconnectCircuitInfo
impl Default for InterconnectCircuitInfo
Source§fn default() -> InterconnectCircuitInfo
fn default() -> InterconnectCircuitInfo
Returns the “default value” for a type. Read more
Source§impl Message for InterconnectCircuitInfo
impl Message for InterconnectCircuitInfo
Source§impl PartialEq for InterconnectCircuitInfo
impl PartialEq for InterconnectCircuitInfo
impl StructuralPartialEq for InterconnectCircuitInfo
Auto Trait Implementations§
impl Freeze for InterconnectCircuitInfo
impl RefUnwindSafe for InterconnectCircuitInfo
impl Send for InterconnectCircuitInfo
impl Sync for InterconnectCircuitInfo
impl Unpin for InterconnectCircuitInfo
impl UnwindSafe for InterconnectCircuitInfo
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