pub struct ExistsCommandHandler { /* private fields */ }Expand description
ExistsCommandHandler checks whether an environment exists
Purpose: Read-only existence check against the repository
This handler queries the repository to determine if an environment with the given name exists. It never modifies state or makes network calls.
Implementations§
Source§impl ExistsCommandHandler
impl ExistsCommandHandler
Sourcepub fn new(repository: Arc<dyn EnvironmentRepository>) -> Self
pub fn new(repository: Arc<dyn EnvironmentRepository>) -> Self
Create a new ExistsCommandHandler
Sourcepub fn execute(
&self,
env_name: &EnvironmentName,
) -> Result<ExistsResult, ExistsCommandHandlerError>
pub fn execute( &self, env_name: &EnvironmentName, ) -> Result<ExistsResult, ExistsCommandHandlerError>
Execute the exists command workflow
Checks whether the named environment exists in the repository.
§Arguments
env_name- The name of the environment to check
§Returns
Ok(ExistsResult)- Result indicating whether the environment existsErr(ExistsCommandHandlerError)- If the repository check fails
§Errors
Returns an error if:
- Repository access fails (file system error, permissions, etc.)
Auto Trait Implementations§
impl !RefUnwindSafe for ExistsCommandHandler
impl !Send for ExistsCommandHandler
impl !Sync for ExistsCommandHandler
impl !UnwindSafe for ExistsCommandHandler
impl Freeze for ExistsCommandHandler
impl Unpin for ExistsCommandHandler
impl UnsafeUnpin for ExistsCommandHandler
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request