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