pub struct SignCommitParams {
pub commit_sha: String,
pub issuer_did: String,
pub device_did: String,
pub commit_message: Option<String>,
pub author: Option<String>,
pub oidc_binding: Option<OidcMachineIdentity>,
pub timestamp: DateTime<Utc>,
}Expand description
Parameters for signing a commit with an identity.
Args:
commit_sha: The Git commit SHA (40 hex characters)issuer_did: The issuer identity DIDdevice_did: The device DIDcommit_message: Optional commit messageauthor: Optional commit author infooidc_binding: Optional OIDC binding from a machine identitytimestamp: When the attestation was created
Fields§
§commit_sha: StringGit commit SHA
issuer_did: StringIssuer identity DID
device_did: StringDevice DID for the signing device
commit_message: Option<String>Git commit message (optional)
Commit author (optional)
oidc_binding: Option<OidcMachineIdentity>OIDC binding if signed from CI (optional)
timestamp: DateTime<Utc>Timestamp of attestation creation
Trait Implementations§
Source§impl Clone for SignCommitParams
impl Clone for SignCommitParams
Source§fn clone(&self) -> SignCommitParams
fn clone(&self) -> SignCommitParams
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 moreAuto Trait Implementations§
impl Freeze for SignCommitParams
impl RefUnwindSafe for SignCommitParams
impl Send for SignCommitParams
impl Sync for SignCommitParams
impl Unpin for SignCommitParams
impl UnsafeUnpin for SignCommitParams
impl UnwindSafe for SignCommitParams
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