pub struct WillSaveTextDocumentParams {
pub reason: TextDocumentSaveReason,
pub text_document: TextDocumentIdentifier,
}Expand description
The parameters send in a will save text document notification.
Fields§
§reason: TextDocumentSaveReasonThe ‘TextDocumentSaveReason’.
text_document: TextDocumentIdentifierThe document that will be saved.
Implementations§
Trait Implementations§
Source§impl Clone for WillSaveTextDocumentParams
impl Clone for WillSaveTextDocumentParams
Source§fn clone(&self) -> WillSaveTextDocumentParams
fn clone(&self) -> WillSaveTextDocumentParams
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 WillSaveTextDocumentParams
impl Debug for WillSaveTextDocumentParams
Source§impl<'de> Deserialize<'de> for WillSaveTextDocumentParams
impl<'de> Deserialize<'de> for WillSaveTextDocumentParams
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 FromNotice for WillSaveTextDocumentParams
impl FromNotice for WillSaveTextDocumentParams
const METHOD: &'static str = "textDocument/willSave"
Source§fn from_notice(notice: NotificationMessage) -> OneOf<Self, NotificationMessage>
fn from_notice(notice: NotificationMessage) -> OneOf<Self, NotificationMessage>
perform message cast
if method do not match, return
OneOf::Other(request)Source§fn into_notice(self) -> NotificationMessage
fn into_notice(self) -> NotificationMessage
helper method for specify notification down cast to generic Notification
message
Source§fn can_cast(notice: &NotificationMessage) -> bool
fn can_cast(notice: &NotificationMessage) -> bool
test method match or not
Source§impl FromReq for WillSaveTextDocumentParams
impl FromReq for WillSaveTextDocumentParams
const METHOD: &'static str = "textDocument/willSaveWaitUntil"
type Ret = Vec<TextEdit>
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
impl StructuralPartialEq for WillSaveTextDocumentParams
Auto Trait Implementations§
impl Freeze for WillSaveTextDocumentParams
impl RefUnwindSafe for WillSaveTextDocumentParams
impl Send for WillSaveTextDocumentParams
impl Sync for WillSaveTextDocumentParams
impl Unpin for WillSaveTextDocumentParams
impl UnwindSafe for WillSaveTextDocumentParams
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