pub struct CreateFilesParams {
pub files: Vec<FileCreate>,
}Expand description
The parameters sent in notifications/requests for user-initiated creation of files.
Fields§
§files: Vec<FileCreate>An array of all files/folders created in this operation.
Implementations§
Source§impl CreateFilesParams
impl CreateFilesParams
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 CreateFilesParams
impl Clone for CreateFilesParams
Source§fn clone(&self) -> CreateFilesParams
fn clone(&self) -> CreateFilesParams
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 CreateFilesParams
impl Debug for CreateFilesParams
Source§impl Default for CreateFilesParams
impl Default for CreateFilesParams
Source§fn default() -> CreateFilesParams
fn default() -> CreateFilesParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateFilesParams
impl<'de> Deserialize<'de> for CreateFilesParams
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 CreateFilesParams
impl FromNotice for CreateFilesParams
const METHOD: &'static str = "workspace/didCreateFiles"
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 CreateFilesParams
impl FromReq for CreateFilesParams
const METHOD: &'static str = "workspace/willCreateFiles"
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 CreateFilesParams
impl PartialEq for CreateFilesParams
Source§impl Serialize for CreateFilesParams
impl Serialize for CreateFilesParams
impl StructuralPartialEq for CreateFilesParams
Auto Trait Implementations§
impl Freeze for CreateFilesParams
impl RefUnwindSafe for CreateFilesParams
impl Send for CreateFilesParams
impl Sync for CreateFilesParams
impl Unpin for CreateFilesParams
impl UnwindSafe for CreateFilesParams
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