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: StringRelative path within the workspace files directory
Trait Implementations§
Source§impl Clone for WorkspacesCreateFileRequest
impl Clone for WorkspacesCreateFileRequest
Source§fn clone(&self) -> WorkspacesCreateFileRequest
fn clone(&self) -> WorkspacesCreateFileRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkspacesCreateFileRequest
impl Debug for WorkspacesCreateFileRequest
Source§impl Default for WorkspacesCreateFileRequest
impl Default for WorkspacesCreateFileRequest
Source§fn default() -> WorkspacesCreateFileRequest
fn default() -> WorkspacesCreateFileRequest
Returns the “default value” for a type. Read more
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