pub enum ServiceNetworks {
Short {
span: SourceSpan,
names: Vec<Located<String>>,
},
Long {
span: SourceSpan,
networks: Vec<ServiceNetwork>,
},
}Expand description
Service network syntax, retained as a sequence or mapping.
Variants§
Short
Sequence syntax containing network names only.
Fields
§
span: SourceSpanThe complete sequence span.
Long
Mapping syntax containing per-network options.
Fields
§
span: SourceSpanThe complete mapping span.
§
networks: Vec<ServiceNetwork>Attachments in authored order.
Implementations§
Source§impl ServiceNetworks
impl ServiceNetworks
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the complete service-networks span.
Trait Implementations§
Source§impl Clone for ServiceNetworks
impl Clone for ServiceNetworks
Source§fn clone(&self) -> ServiceNetworks
fn clone(&self) -> ServiceNetworks
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 ServiceNetworks
impl Debug for ServiceNetworks
impl Eq for ServiceNetworks
Source§impl PartialEq for ServiceNetworks
impl PartialEq for ServiceNetworks
impl StructuralPartialEq for ServiceNetworks
Auto Trait Implementations§
impl Freeze for ServiceNetworks
impl RefUnwindSafe for ServiceNetworks
impl Send for ServiceNetworks
impl Sync for ServiceNetworks
impl Unpin for ServiceNetworks
impl UnsafeUnpin for ServiceNetworks
impl UnwindSafe for ServiceNetworks
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