pub struct RunRoot { /* private fields */ }Expand description
Issue-scoped run root rooted under the existing
crate::runtime_layout::IssueRoot contract.
Implementations§
Source§impl RunRoot
impl RunRoot
Sourcepub fn new(
repo_slug: &str,
issue_number: u64,
run_id: impl Into<String>,
) -> Result<Self, RuntimeLayoutError>
pub fn new( repo_slug: &str, issue_number: u64, run_id: impl Into<String>, ) -> Result<Self, RuntimeLayoutError>
Build the run root under <issue-root>/runs/<run-id>/.
pub fn issue_root(&self) -> &IssueRoot
pub fn run_id(&self) -> &str
pub fn root(&self) -> PathBuf
pub fn run_state_path(&self) -> PathBuf
pub fn events_path(&self) -> PathBuf
pub fn inputs_dir(&self) -> PathBuf
pub fn rendered_dir(&self) -> PathBuf
pub fn artifacts_dir(&self) -> PathBuf
Sourcepub fn ensure_layout(&self) -> Result<()>
pub fn ensure_layout(&self) -> Result<()>
Ensure the full directory tree exists.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RunRoot
impl RefUnwindSafe for RunRoot
impl Send for RunRoot
impl Sync for RunRoot
impl Unpin for RunRoot
impl UnsafeUnpin for RunRoot
impl UnwindSafe for RunRoot
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