pub struct NetworkDefinition { /* private fields */ }Expand description
A typed top-level Compose network definition.
Implementations§
Source§impl NetworkDefinition
impl NetworkDefinition
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the complete definition span.
Sourcepub fn driver_opts(&self) -> &[KeyValueEntry]
pub fn driver_opts(&self) -> &[KeyValueEntry]
Returns driver options.
Sourcepub const fn attachable(&self) -> Option<&Located<BooleanValue>>
pub const fn attachable(&self) -> Option<&Located<BooleanValue>>
Returns the attachable setting.
Sourcepub const fn enable_ipv4(&self) -> Option<&Located<BooleanValue>>
pub const fn enable_ipv4(&self) -> Option<&Located<BooleanValue>>
Returns the IPv4 setting.
Sourcepub const fn enable_ipv6(&self) -> Option<&Located<BooleanValue>>
pub const fn enable_ipv6(&self) -> Option<&Located<BooleanValue>>
Returns the IPv6 setting.
Sourcepub const fn external(&self) -> Option<&Located<BooleanValue>>
pub const fn external(&self) -> Option<&Located<BooleanValue>>
Returns the external-lifecycle setting.
Sourcepub const fn internal(&self) -> Option<&Located<BooleanValue>>
pub const fn internal(&self) -> Option<&Located<BooleanValue>>
Returns the internal-network setting.
Sourcepub const fn custom_name(&self) -> Option<&Located<String>>
pub const fn custom_name(&self) -> Option<&Located<String>>
Returns the platform-level custom name.
Sourcepub fn extension_fields(&self) -> &[FieldReference]
pub fn extension_fields(&self) -> &[FieldReference]
Returns retained x- fields.
Sourcepub fn unknown_fields(&self) -> &[FieldReference]
pub fn unknown_fields(&self) -> &[FieldReference]
Returns unrecognized fields.
Trait Implementations§
Source§impl Clone for NetworkDefinition
impl Clone for NetworkDefinition
Source§fn clone(&self) -> NetworkDefinition
fn clone(&self) -> NetworkDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NetworkDefinition
impl Debug for NetworkDefinition
impl Eq for NetworkDefinition
Source§impl PartialEq for NetworkDefinition
impl PartialEq for NetworkDefinition
impl StructuralPartialEq for NetworkDefinition
Auto Trait Implementations§
impl Freeze for NetworkDefinition
impl RefUnwindSafe for NetworkDefinition
impl Send for NetworkDefinition
impl Sync for NetworkDefinition
impl Unpin for NetworkDefinition
impl UnsafeUnpin for NetworkDefinition
impl UnwindSafe for NetworkDefinition
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