pub struct ExternalNameMapping { /* private fields */ }Expand description
The deprecated Compose external: { name: ... } mapping.
Implementations§
Source§impl ExternalNameMapping
impl ExternalNameMapping
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the complete deprecated mapping span.
Sourcepub const fn name(&self) -> Option<&Located<String>>
pub const fn name(&self) -> Option<&Located<String>>
Returns the deprecated external resource name when it is a YAML string.
Sourcepub fn extension_fields(&self) -> &[FieldReference]
pub fn extension_fields(&self) -> &[FieldReference]
Returns retained x- fields in the deprecated mapping.
Sourcepub fn unknown_fields(&self) -> &[FieldReference]
pub fn unknown_fields(&self) -> &[FieldReference]
Returns unrecognized or malformed fields in the deprecated mapping.
Trait Implementations§
Source§impl Clone for ExternalNameMapping
impl Clone for ExternalNameMapping
Source§fn clone(&self) -> ExternalNameMapping
fn clone(&self) -> ExternalNameMapping
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 ExternalNameMapping
impl Debug for ExternalNameMapping
impl Eq for ExternalNameMapping
Source§impl PartialEq for ExternalNameMapping
impl PartialEq for ExternalNameMapping
impl StructuralPartialEq for ExternalNameMapping
Auto Trait Implementations§
impl Freeze for ExternalNameMapping
impl RefUnwindSafe for ExternalNameMapping
impl Send for ExternalNameMapping
impl Sync for ExternalNameMapping
impl Unpin for ExternalNameMapping
impl UnsafeUnpin for ExternalNameMapping
impl UnwindSafe for ExternalNameMapping
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