pub enum RosterDeploy {
Skipped(SkipReason),
Deployed {
target: PathBuf,
result: Box<DeployResult>,
},
}Expand description
What one ensure_roster_deployed call did.
Why: the caller logs a different line for each, and a test asserts on which
branch ran rather than inferring it from the filesystem.
What: either a skip with its reason, or the deployer’s own
DeployResult alongside the directory it wrote into.
Test: fresh_project_materializes_the_whole_roster,
deploy_is_skipped_when_claude_agents_dir_wins.
Variants§
Skipped(SkipReason)
Nothing was written.
Deployed
The shared deployer ran against target.
Fields
§
result: Box<DeployResult>The deployer’s per-file outcome lists. Boxed because
DeployResult is two orders of magnitude larger than the skip
variant, which clippy::large_enum_variant denies.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RosterDeploy
impl RefUnwindSafe for RosterDeploy
impl Send for RosterDeploy
impl Sync for RosterDeploy
impl Unpin for RosterDeploy
impl UnsafeUnpin for RosterDeploy
impl UnwindSafe for RosterDeploy
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.