pub struct PushCertEnv {
pub cert_oid: String,
pub signer: String,
pub key: String,
pub status: char,
pub nonce: Option<String>,
pub nonce_status: Option<String>,
}Expand description
The hook-visible certificate environment, mirroring receive-pack’s
GIT_PUSH_CERT* variables.
Fields§
§cert_oid: StringGIT_PUSH_CERT — OID of the blob the cert was stored as.
signer: StringGIT_PUSH_CERT_SIGNER — %GS signer (may be empty).
key: StringGIT_PUSH_CERT_KEY — %GK key id (may be empty).
status: charGIT_PUSH_CERT_STATUS — single-char %G? result.
nonce: Option<String>GIT_PUSH_CERT_NONCE — the nonce we issued (None when no seed).
nonce_status: Option<String>GIT_PUSH_CERT_NONCE_STATUS — OK/SLOP/BAD/… (None when no seed).
Implementations§
Source§impl PushCertEnv
impl PushCertEnv
Sourcepub fn to_env_pairs(&self) -> Vec<(String, String)>
pub fn to_env_pairs(&self) -> Vec<(String, String)>
Materialize the variables as (name, value) pairs for hook execution.
Auto Trait Implementations§
impl Freeze for PushCertEnv
impl RefUnwindSafe for PushCertEnv
impl Send for PushCertEnv
impl Sync for PushCertEnv
impl Unpin for PushCertEnv
impl UnsafeUnpin for PushCertEnv
impl UnwindSafe for PushCertEnv
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