pub enum Request {
Show 38 variants
DiscardPlan(DiscardPlanQuery),
ApplyPlan(ApplyPlanQuery),
ValidatePlan(ValidatePlanQuery),
InspectPlan(InspectPlanQuery),
PrepareRename(PrepareRenameQuery),
PrepareRewrite(PrepareRewriteQuery),
PrepareMove(PrepareMoveQuery),
PrepareMoveSymbol(PrepareMoveSymbolQuery),
SymbolMoveCandidates(SymbolMoveCandidatesQuery),
ReviewPlan(ReviewPlanQuery),
SearchPage(SearchPageQuery),
ContextPage(ContextPageQuery),
Continue(ContinueQuery),
Expand(ExpandQuery),
Discover(DiscoveryQuery),
Context(ContextQuery),
Navigate(NavigationQuery),
Relationships(RelationshipsQuery),
Resolve(ResolutionQuery),
Search(SearchQuery),
Outline(OutlineQuery),
References(ReferencesQuery),
Where(WhereQuery),
Deps(DepsQuery),
Explain(ExplainQuery),
Surface(SurfaceQuery),
Impact(ImpactQuery),
Dead(DeadQuery),
Imports(ImportsQuery),
WorkspaceFiles(WorkspaceFilesQuery),
File(FileQuery),
Rewrite {
intent: RewriteIntent,
apply: bool,
},
Rename {
intent: RenameIntent,
apply: bool,
},
Move {
intent: MoveIntent,
apply: bool,
},
MoveSymbol {
intent: MoveSymbolIntent,
apply: bool,
},
Batch {
intent: BatchIntent,
apply: bool,
},
History,
Undo,
}Expand description
One request, tagged by command. A mutation carries the same fields as
its Intent plus apply: false previews, true writes
and records one undo — exactly what the CLI’s --apply does.
Variants§
DiscardPlan(DiscardPlanQuery)
ApplyPlan(ApplyPlanQuery)
ValidatePlan(ValidatePlanQuery)
InspectPlan(InspectPlanQuery)
PrepareRename(PrepareRenameQuery)
PrepareRewrite(PrepareRewriteQuery)
PrepareMove(PrepareMoveQuery)
PrepareMoveSymbol(PrepareMoveSymbolQuery)
SymbolMoveCandidates(SymbolMoveCandidatesQuery)
ReviewPlan(ReviewPlanQuery)
SearchPage(SearchPageQuery)
ContextPage(ContextPageQuery)
Continue(ContinueQuery)
Expand(ExpandQuery)
Discover(DiscoveryQuery)
Context(ContextQuery)
Relationships(RelationshipsQuery)
Resolve(ResolutionQuery)
Search(SearchQuery)
Outline(OutlineQuery)
References(ReferencesQuery)
Where(WhereQuery)
Deps(DepsQuery)
Explain(ExplainQuery)
Surface(SurfaceQuery)
Impact(ImpactQuery)
Dead(DeadQuery)
Imports(ImportsQuery)
WorkspaceFiles(WorkspaceFilesQuery)
File(FileQuery)
Rewrite
Rename
Move
MoveSymbol
Batch
History
Undo
Implementations§
Source§impl Request
impl Request
Sourcepub fn is_cancellable(&self) -> bool
pub fn is_cancellable(&self) -> bool
Whether running this request can write. The picker’s hub asks only
these; a mutation goes through an Intent and Apply.
Reads and explicit checks can stop; applying a transaction cannot.
pub fn is_read_only(&self) -> bool
pub fn command(&self) -> Command
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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 Request
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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