pub struct ApplyCommands {
pub preview: String,
pub apply: String,
pub apply_verified: String,
}Expand description
Commands for applying a suggestion.
Provides ready-to-use CLI commands for users.
Fields§
§preview: StringCommand to preview changes (dry-run).
apply: StringCommand to apply changes.
apply_verified: StringCommand to apply with verification.
Implementations§
Source§impl ApplyCommands
impl ApplyCommands
Sourcepub fn for_suggestion(id: &SuggestId) -> ApplyCommands
pub fn for_suggestion(id: &SuggestId) -> ApplyCommands
Create apply commands for a given suggestion ID.
Sourcepub fn for_choice(
suggestion_id: &SuggestId,
choice_id: &ChoiceId,
) -> ApplyCommands
pub fn for_choice( suggestion_id: &SuggestId, choice_id: &ChoiceId, ) -> ApplyCommands
Create apply commands for a specific choice.
Trait Implementations§
Source§impl Clone for ApplyCommands
impl Clone for ApplyCommands
Source§fn clone(&self) -> ApplyCommands
fn clone(&self) -> ApplyCommands
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ApplyCommands
impl Debug for ApplyCommands
Source§impl Default for ApplyCommands
impl Default for ApplyCommands
Source§fn default() -> ApplyCommands
fn default() -> ApplyCommands
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApplyCommands
impl<'de> Deserialize<'de> for ApplyCommands
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ApplyCommands, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ApplyCommands, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ApplyCommands
impl Serialize for ApplyCommands
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ApplyCommands
impl RefUnwindSafe for ApplyCommands
impl Send for ApplyCommands
impl Sync for ApplyCommands
impl Unpin for ApplyCommands
impl UnsafeUnpin for ApplyCommands
impl UnwindSafe for ApplyCommands
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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 more