pub struct BatchIntent {
pub intents: Vec<Intent>,
}Expand description
Several intents planned in sequence, each against the state the previous one leaves, and applied as one.
Fields§
§intents: Vec<Intent>Implementations§
Source§impl BatchIntent
impl BatchIntent
pub fn new(intents: impl IntoIterator<Item = Intent>) -> Self
Source§impl BatchIntent
Plan several intents as one. Each is planned against a staging copy of
the workspace onto which the previous steps have been applied, so a
rename may follow a move of the file it touches. Nothing real is
written; see Apply.
impl BatchIntent
Plan several intents as one. Each is planned against a staging copy of
the workspace onto which the previous steps have been applied, so a
rename may follow a move of the file it touches. Nothing real is
written; see Apply.
Trait Implementations§
Source§impl Clone for BatchIntent
impl Clone for BatchIntent
Source§impl Debug for BatchIntent
impl Debug for BatchIntent
Source§impl<'de> Deserialize<'de> for BatchIntent
impl<'de> Deserialize<'de> for BatchIntent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BatchIntent
Source§impl From<BatchIntent> for Intent
impl From<BatchIntent> for Intent
Source§fn from(i: BatchIntent) -> Self
fn from(i: BatchIntent) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BatchIntent
impl PartialEq for BatchIntent
Source§impl Serialize for BatchIntent
impl Serialize for BatchIntent
impl StructuralPartialEq for BatchIntent
Auto Trait Implementations§
impl Freeze for BatchIntent
impl RefUnwindSafe for BatchIntent
impl Send for BatchIntent
impl Sync for BatchIntent
impl Unpin for BatchIntent
impl UnsafeUnpin for BatchIntent
impl UnwindSafe for BatchIntent
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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