#[non_exhaustive]pub enum ExposeItemKind {
Documented {
port: ExposePort,
protocol: Option<ExposeProtocol>,
},
Sctp {
port: ExposePort,
},
UnknownProtocol {
port: ExposePort,
protocol: String,
},
Expression,
Malformed,
}Expand description
The conservative semantic family of one service expose item.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Documented
A documented decimal port or range with an omitted, tcp, or udp suffix.
Fields
§
port: ExposePortExact decimal port or range components.
§
protocol: Option<ExposeProtocol>Exact documented protocol when explicitly present.
Sctp
A well-shaped decimal port or range using the schema-recognized sctp suffix.
Fields
§
port: ExposePortExact decimal port or range components.
UnknownProtocol
A well-shaped decimal port or range using another raw protocol token.
Fields
§
port: ExposePortExact decimal port or range components.
Expression
A string whose effective spelling depends on Compose interpolation.
Malformed
An empty or otherwise malformed scalar retained for diagnostics.
Trait Implementations§
Source§impl Clone for ExposeItemKind
impl Clone for ExposeItemKind
Source§fn clone(&self) -> ExposeItemKind
fn clone(&self) -> ExposeItemKind
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 ExposeItemKind
impl Debug for ExposeItemKind
impl Eq for ExposeItemKind
Source§impl PartialEq for ExposeItemKind
impl PartialEq for ExposeItemKind
impl StructuralPartialEq for ExposeItemKind
Auto Trait Implementations§
impl Freeze for ExposeItemKind
impl RefUnwindSafe for ExposeItemKind
impl Send for ExposeItemKind
impl Sync for ExposeItemKind
impl Unpin for ExposeItemKind
impl UnsafeUnpin for ExposeItemKind
impl UnwindSafe for ExposeItemKind
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