pub struct Publish<'a> {
pub remote: &'a str,
pub attempts: u32,
pub pause: bool,
pub identity: Option<(&'a str, &'a str)>,
pub push_env: &'a [(&'a str, &'a str)],
}Expand description
How a publish is carried out. Every producer and every signed-notes ref (attestations, their inputs, provenance) goes through the same loop.
Fields§
§remote: &'a strThe remote to publish to.
attempts: u32How many fetch-append-push rounds before a lost race is given up.
pause: boolWait between rounds, growing with the attempt (sign.sh in CI); a
hook on the commit path does not wait.
identity: Option<(&'a str, &'a str)>The committer of the notes commit, for a runner with no identity of
its own; None uses the repository’s.
push_env: &'a [(&'a str, &'a str)]Extra environment for the push itself (amont marks its own notes push so its pre-push hook yields).
Auto Trait Implementations§
impl<'a> Freeze for Publish<'a>
impl<'a> RefUnwindSafe for Publish<'a>
impl<'a> Send for Publish<'a>
impl<'a> Sync for Publish<'a>
impl<'a> Unpin for Publish<'a>
impl<'a> UnsafeUnpin for Publish<'a>
impl<'a> UnwindSafe for Publish<'a>
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