pub enum Intent {
Rewrite(RewriteIntent),
Rename(RenameIntent),
Move(MoveIntent),
MoveSymbol(MoveSymbolIntent),
Batch(BatchIntent),
}Expand description
Any mutating request, as one value: what history records, what a summary renders, what a remote client sends.
Variants§
Rewrite(RewriteIntent)
Rename(RenameIntent)
Move(MoveIntent)
MoveSymbol(MoveSymbolIntent)
Batch(BatchIntent)
Several intents planned in sequence, each against the state the previous one leaves, and applied as one.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Intent
impl<'de> Deserialize<'de> for Intent
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 Intent
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 From<MoveIntent> for Intent
impl From<MoveIntent> for Intent
Source§fn from(i: MoveIntent) -> Self
fn from(i: MoveIntent) -> Self
Converts to this type from the input type.
Source§impl From<MoveSymbolIntent> for Intent
impl From<MoveSymbolIntent> for Intent
Source§fn from(i: MoveSymbolIntent) -> Self
fn from(i: MoveSymbolIntent) -> Self
Converts to this type from the input type.
Source§impl From<RenameIntent> for Intent
impl From<RenameIntent> for Intent
Source§fn from(i: RenameIntent) -> Self
fn from(i: RenameIntent) -> Self
Converts to this type from the input type.
Source§impl From<RewriteIntent> for Intent
impl From<RewriteIntent> for Intent
Source§fn from(i: RewriteIntent) -> Self
fn from(i: RewriteIntent) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Intent
Auto Trait Implementations§
impl Freeze for Intent
impl RefUnwindSafe for Intent
impl Send for Intent
impl Sync for Intent
impl Unpin for Intent
impl UnsafeUnpin for Intent
impl UnwindSafe for Intent
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