#[non_exhaustive]pub enum ProjectBuildExtraHosts {
List(Vec<ProjectValue<String>>),
Map(Vec<ProjectBuildExtraHostEntry>),
}Expand description
Effective build-time host mappings, intentionally distinct from service ProjectExtraHosts.
List entries remain raw ordered strings, including duplicates. Mapping entries retain raw hostname keys and scalar/list address syntax without applying service-host parsing.
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.
List(Vec<ProjectValue<String>>)
Ordered raw string entries.
Map(Vec<ProjectBuildExtraHostEntry>)
Ordered hostname keys with scalar or list addresses.
Implementations§
Source§impl ProjectBuildExtraHosts
impl ProjectBuildExtraHosts
Sourcepub fn as_list(&self) -> Option<&[ProjectValue<String>]>
pub fn as_list(&self) -> Option<&[ProjectValue<String>]>
Returns ordered raw entries when the effective form is a list.
Sourcepub fn as_map(&self) -> Option<&[ProjectBuildExtraHostEntry]>
pub fn as_map(&self) -> Option<&[ProjectBuildExtraHostEntry]>
Returns ordered hostname entries when the effective form is a mapping.
Trait Implementations§
Source§impl Clone for ProjectBuildExtraHosts
impl Clone for ProjectBuildExtraHosts
Source§fn clone(&self) -> ProjectBuildExtraHosts
fn clone(&self) -> ProjectBuildExtraHosts
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 ProjectBuildExtraHosts
impl Debug for ProjectBuildExtraHosts
impl Eq for ProjectBuildExtraHosts
Source§impl PartialEq for ProjectBuildExtraHosts
impl PartialEq for ProjectBuildExtraHosts
impl StructuralPartialEq for ProjectBuildExtraHosts
Auto Trait Implementations§
impl Freeze for ProjectBuildExtraHosts
impl RefUnwindSafe for ProjectBuildExtraHosts
impl Send for ProjectBuildExtraHosts
impl Sync for ProjectBuildExtraHosts
impl Unpin for ProjectBuildExtraHosts
impl UnsafeUnpin for ProjectBuildExtraHosts
impl UnwindSafe for ProjectBuildExtraHosts
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