pub struct SourceBuildSecret { /* private fields */ }Expand description
A source build-secret declaration whose options remain distinct from target build-secret text.
Implementations§
Source§impl SourceBuildSecret
impl SourceBuildSecret
Sourcepub const fn new(source: ProtectedString) -> Self
pub const fn new(source: ProtectedString) -> Self
Creates a source build-secret declaration without applying native validation.
Sourcepub const fn source(&self) -> &ProtectedString
pub const fn source(&self) -> &ProtectedString
Returns the preserved source name.
Sourcepub fn set_target(&mut self, target: ProtectedString)
pub fn set_target(&mut self, target: ProtectedString)
Sets the optional target name.
Sourcepub const fn target(&self) -> Option<&ProtectedString>
pub const fn target(&self) -> Option<&ProtectedString>
Returns the optional target name.
Sourcepub fn set_uid(&mut self, uid: ProtectedString)
pub fn set_uid(&mut self, uid: ProtectedString)
Sets the optional UID spelling.
Sourcepub const fn uid(&self) -> Option<&ProtectedString>
pub const fn uid(&self) -> Option<&ProtectedString>
Returns the optional UID spelling.
Sourcepub fn set_gid(&mut self, gid: ProtectedString)
pub fn set_gid(&mut self, gid: ProtectedString)
Sets the optional GID spelling.
Sourcepub const fn gid(&self) -> Option<&ProtectedString>
pub const fn gid(&self) -> Option<&ProtectedString>
Returns the optional GID spelling.
Sourcepub fn set_mode(&mut self, mode: ProtectedString)
pub fn set_mode(&mut self, mode: ProtectedString)
Sets the optional mode spelling.
Sourcepub const fn mode(&self) -> Option<&ProtectedString>
pub const fn mode(&self) -> Option<&ProtectedString>
Returns the optional mode spelling.
Trait Implementations§
Source§impl Clone for SourceBuildSecret
impl Clone for SourceBuildSecret
Source§fn clone(&self) -> SourceBuildSecret
fn clone(&self) -> SourceBuildSecret
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 SourceBuildSecret
impl Debug for SourceBuildSecret
impl Eq for SourceBuildSecret
Source§impl PartialEq for SourceBuildSecret
impl PartialEq for SourceBuildSecret
impl StructuralPartialEq for SourceBuildSecret
Auto Trait Implementations§
impl Freeze for SourceBuildSecret
impl RefUnwindSafe for SourceBuildSecret
impl Send for SourceBuildSecret
impl Sync for SourceBuildSecret
impl Unpin for SourceBuildSecret
impl UnsafeUnpin for SourceBuildSecret
impl UnwindSafe for SourceBuildSecret
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