pub struct ConfigSet { /* private fields */ }Expand description
Set a config value.
§Examples
use ironflow_ops_git::config::ConfigSet;
use ironflow_core::operation::Operation;
let op = ConfigSet::new("/path/to/repo", "user.name", "Alice");
assert_eq!(op.kind(), "git");Implementations§
Trait Implementations§
Source§impl Operation for ConfigSet
impl Operation for ConfigSet
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 ConfigSet
impl TypedOperation for ConfigSet
Source§type Output = ConfigSetOutput
type Output = ConfigSetOutput
The concrete output type that
Operation::execute produces.Auto Trait Implementations§
impl Freeze for ConfigSet
impl RefUnwindSafe for ConfigSet
impl Send for ConfigSet
impl Sync for ConfigSet
impl Unpin for ConfigSet
impl UnsafeUnpin for ConfigSet
impl UnwindSafe for ConfigSet
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