pub struct WorkspacesCreateFileRequest {
pub content: String,
pub path: String,
}Expand description
Relative path and UTF-8 content for the workspace file to create or overwrite.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§content: StringFile content to write as a UTF-8 string
path: StringSlash-separated relative path within the workspace files directory
Trait Implementations§
Source§impl Clone for WorkspacesCreateFileRequest
impl Clone for WorkspacesCreateFileRequest
Source§impl Debug for WorkspacesCreateFileRequest
impl Debug for WorkspacesCreateFileRequest
Source§impl<'de> Deserialize<'de> for WorkspacesCreateFileRequest
impl<'de> Deserialize<'de> for WorkspacesCreateFileRequest
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
Auto Trait Implementations§
impl Freeze for WorkspacesCreateFileRequest
impl RefUnwindSafe for WorkspacesCreateFileRequest
impl Send for WorkspacesCreateFileRequest
impl Sync for WorkspacesCreateFileRequest
impl Unpin for WorkspacesCreateFileRequest
impl UnsafeUnpin for WorkspacesCreateFileRequest
impl UnwindSafe for WorkspacesCreateFileRequest
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