pub struct ImageArtifactAssignment { /* private fields */ }Expand description
One source-preserving assignment used by image artifact settings.
Empty and key-only assignments are retained for adapters to diagnose rather than discarded by
the neutral model. ProtectedString prevents interpolated names and values from leaking into
debug output.
Implementations§
Source§impl ImageArtifactAssignment
impl ImageArtifactAssignment
Sourcepub const fn new(name: ProtectedString, value: Option<ProtectedString>) -> Self
pub const fn new(name: ProtectedString, value: Option<ProtectedString>) -> Self
Creates a key-only or key/value assignment without applying native naming rules.
Sourcepub const fn name(&self) -> &ProtectedString
pub const fn name(&self) -> &ProtectedString
Returns the preserved assignment name.
Sourcepub const fn value(&self) -> Option<&ProtectedString>
pub const fn value(&self) -> Option<&ProtectedString>
Returns the explicit value, if the source supplied one.
Trait Implementations§
Source§impl Clone for ImageArtifactAssignment
impl Clone for ImageArtifactAssignment
Source§fn clone(&self) -> ImageArtifactAssignment
fn clone(&self) -> ImageArtifactAssignment
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 ImageArtifactAssignment
impl Debug for ImageArtifactAssignment
impl Eq for ImageArtifactAssignment
Source§impl PartialEq for ImageArtifactAssignment
impl PartialEq for ImageArtifactAssignment
impl StructuralPartialEq for ImageArtifactAssignment
Auto Trait Implementations§
impl Freeze for ImageArtifactAssignment
impl RefUnwindSafe for ImageArtifactAssignment
impl Send for ImageArtifactAssignment
impl Sync for ImageArtifactAssignment
impl Unpin for ImageArtifactAssignment
impl UnsafeUnpin for ImageArtifactAssignment
impl UnwindSafe for ImageArtifactAssignment
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