pub struct RenameParams {
pub new_name: String,
pub position: Position,
pub text_document: TextDocumentIdentifier,
pub work_done_token: Option<ProgressToken>,
}Fields§
§new_name: StringThe new name of the symbol. If the given name is not valid the request must return a ResponseError with an appropriate message set.
position: PositionThe position inside the text document.
text_document: TextDocumentIdentifierThe text document.
work_done_token: Option<ProgressToken>An optional token that a server can use to report work done progress.
Implementations§
Source§impl RenameParams
impl RenameParams
Sourcepub fn ret(result: Option<WorkspaceEdit>) -> Option<WorkspaceEdit>
pub fn ret(result: Option<WorkspaceEdit>) -> Option<WorkspaceEdit>
helper function for user do not need to remember result type of a request
Trait Implementations§
Source§impl Clone for RenameParams
impl Clone for RenameParams
Source§fn clone(&self) -> RenameParams
fn clone(&self) -> RenameParams
Returns a duplicate of the value. Read more
1.0.0 · 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 RenameParams
impl Debug for RenameParams
Source§impl<'de> Deserialize<'de> for RenameParams
impl<'de> Deserialize<'de> for RenameParams
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
Source§impl FromReq for RenameParams
impl FromReq for RenameParams
const METHOD: &'static str = "textDocument/rename"
type Ret = Option<WorkspaceEdit>
Source§fn from_req(req: RequestMessage) -> OneOf<(ReqId, Self), RequestMessage>
fn from_req(req: RequestMessage) -> OneOf<(ReqId, Self), RequestMessage>
perform message cast from raw request message
if method do not match, return
OneOf::Other(request)Source§fn can_cast(req: &RequestMessage) -> bool
fn can_cast(req: &RequestMessage) -> bool
helper function to test method match or not
Source§impl PartialEq for RenameParams
impl PartialEq for RenameParams
Source§impl Serialize for RenameParams
impl Serialize for RenameParams
impl StructuralPartialEq for RenameParams
Auto Trait Implementations§
impl Freeze for RenameParams
impl RefUnwindSafe for RenameParams
impl Send for RenameParams
impl Sync for RenameParams
impl Unpin for RenameParams
impl UnwindSafe for RenameParams
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