pub struct RepoOpen { /* private fields */ }Expand description
Open an existing Git repository.
Returns the repository path and whether it is bare.
§Examples
use ironflow_ops_git::repository::RepoOpen;
use ironflow_core::operation::Operation;
let op = RepoOpen::new("/path/to/repo");
assert_eq!(op.kind(), "git");Implementations§
Source§impl RepoOpen
impl RepoOpen
Sourcepub async fn run(
&self,
_ctx: &OperationContext,
) -> Result<RepoOpenOutput, OperationError>
pub async fn run( &self, _ctx: &OperationContext, ) -> Result<RepoOpenOutput, OperationError>
Execute and return a typed result.
Trait Implementations§
Source§impl Operation for RepoOpen
impl Operation for RepoOpen
Source§fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 OperationContext,
) -> Pin<Box<dyn Future<Output = Result<Value, OperationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 OperationContext,
) -> Pin<Box<dyn Future<Output = Result<Value, OperationError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execute the operation and return the result as JSON. Read more
Source§impl TypedOperation for RepoOpen
impl TypedOperation for RepoOpen
Source§type Output = RepoOpenOutput
type Output = RepoOpenOutput
The concrete output type that
Operation::execute produces.Auto Trait Implementations§
impl Freeze for RepoOpen
impl RefUnwindSafe for RepoOpen
impl Send for RepoOpen
impl Sync for RepoOpen
impl Unpin for RepoOpen
impl UnsafeUnpin for RepoOpen
impl UnwindSafe for RepoOpen
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