pub struct StashList { /* private fields */ }Expand description
List all stash entries.
§Examples
use ironflow_ops_git::stash::StashList;
use ironflow_core::operation::Operation;
let op = StashList::new("/path/to/repo");
assert_eq!(op.kind(), "git");Implementations§
Source§impl StashList
impl StashList
Sourcepub async fn run(
&self,
_ctx: &OperationContext,
) -> Result<StashListOutput, OperationError>
pub async fn run( &self, _ctx: &OperationContext, ) -> Result<StashListOutput, OperationError>
Execute and return a typed result.
Trait Implementations§
Source§impl Operation for StashList
impl Operation for StashList
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 StashList
impl TypedOperation for StashList
Source§type Output = StashListOutput
type Output = StashListOutput
The concrete output type that
Operation::execute produces.Auto Trait Implementations§
impl Freeze for StashList
impl RefUnwindSafe for StashList
impl Send for StashList
impl Sync for StashList
impl Unpin for StashList
impl UnsafeUnpin for StashList
impl UnwindSafe for StashList
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