pub struct EnvironmentSecretWriteRequest { /* private fields */ }Expand description
Exact secret role and protected GitHub Environment selected for one write.
The secret value is deliberately absent. It is supplied separately to the runner so it cannot enter argv, debug output, or serialized request state.
Implementations§
Source§impl EnvironmentSecretWriteRequest
impl EnvironmentSecretWriteRequest
Sourcepub const fn new(
repository: Repository,
environment: ProtectedEnvironment,
name: SecretName,
) -> Self
pub const fn new( repository: Repository, environment: ProtectedEnvironment, name: SecretName, ) -> Self
Bind one validated secret name to an exact repository and Environment.
Sourcepub const fn repository(&self) -> &Repository
pub const fn repository(&self) -> &Repository
Exact target repository.
Sourcepub const fn environment(&self) -> &ProtectedEnvironment
pub const fn environment(&self) -> &ProtectedEnvironment
Exact protected Environment.
Sourcepub const fn name(&self) -> &SecretName
pub const fn name(&self) -> &SecretName
Validated secret role name.
Trait Implementations§
impl Eq for EnvironmentSecretWriteRequest
impl StructuralPartialEq for EnvironmentSecretWriteRequest
Auto Trait Implementations§
impl Freeze for EnvironmentSecretWriteRequest
impl RefUnwindSafe for EnvironmentSecretWriteRequest
impl Send for EnvironmentSecretWriteRequest
impl Sync for EnvironmentSecretWriteRequest
impl Unpin for EnvironmentSecretWriteRequest
impl UnsafeUnpin for EnvironmentSecretWriteRequest
impl UnwindSafe for EnvironmentSecretWriteRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.