pub struct BuildSsh { /* private fields */ }Expand description
Sensitive BuildKit SSH grants with mapping and list syntax retained.
List entries remain raw ordered strings, including duplicates. Mapping entries retain scalar
string, number, boolean, or null values in authored order. Neither form parses identifiers,
paths, PEM material, sockets, SSH_AUTH_SOCK, Containerfile mounts, or agent behavior.
Sensitive storage cannot be destructured by downstream callers; use Self::as_list or
Self::as_map explicitly when raw inspection is required.
ⓘ
use compose_lens::model::BuildSsh;
fn forbidden(ssh: BuildSsh) {
let BuildSsh { storage } = ssh;
}Implementations§
Source§impl BuildSsh
impl BuildSsh
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the authored collection span.
Sourcepub const fn form(&self) -> BuildSshForm
pub const fn form(&self) -> BuildSshForm
Returns the authored syntax form without exposing sensitive storage.
Sourcepub fn as_list(&self) -> Option<&[Located<String>]>
pub fn as_list(&self) -> Option<&[Located<String>]>
Explicitly returns raw ordered list-form grants.
Sourcepub fn as_map(&self) -> Option<&[KeyValueEntry]>
pub fn as_map(&self) -> Option<&[KeyValueEntry]>
Explicitly returns raw ordered mapping-form grants.
Trait Implementations§
impl Eq for BuildSsh
impl StructuralPartialEq for BuildSsh
Auto Trait Implementations§
impl Freeze for BuildSsh
impl RefUnwindSafe for BuildSsh
impl Send for BuildSsh
impl Sync for BuildSsh
impl Unpin for BuildSsh
impl UnsafeUnpin for BuildSsh
impl UnwindSafe for BuildSsh
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