pub struct Reference { /* private fields */ }Expand description
One source-aware Compose cross-reference.
Implementations§
Source§impl Reference
impl Reference
Sourcepub fn source_service(&self) -> &str
pub fn source_service(&self) -> &str
Returns the service containing the reference.
Sourcepub const fn source(&self) -> SourceSpan
pub const fn source(&self) -> SourceSpan
Returns the reference source span.
Sourcepub const fn kind(&self) -> ReferenceKind
pub const fn kind(&self) -> ReferenceKind
Returns the reference kind.
Sourcepub const fn status(&self) -> ReferenceStatus
pub const fn status(&self) -> ReferenceStatus
Returns whether the target is available.
Sourcepub const fn is_sensitive(&self) -> bool
pub const fn is_sensitive(&self) -> bool
Reports whether interpolation inserted sensitive content into the target name.
Sourcepub const fn is_required(&self) -> bool
pub const fn is_required(&self) -> bool
Reports whether an unavailable dependency is an error rather than a warning.
Non-dependency reference kinds are always required.
Trait Implementations§
impl Eq for Reference
impl StructuralPartialEq for Reference
Auto Trait Implementations§
impl Freeze for Reference
impl RefUnwindSafe for Reference
impl Send for Reference
impl Sync for Reference
impl Unpin for Reference
impl UnsafeUnpin for Reference
impl UnwindSafe for Reference
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