pub struct ProjectFile {
pub plain: String,
pub snippet: Option<String>,
}
Expand description
Code stubs/snippets for creating a file in an ink! project
(e.g. lib.rs
or Cargo.toml
for an ink! contract).
Fields§
§plain: String
A plain text code stub.
snippet: Option<String>
A snippet (i.e. with tab stops and/or placeholders).
Trait Implementations§
Source§impl Debug for ProjectFile
impl Debug for ProjectFile
Source§impl PartialEq for ProjectFile
impl PartialEq for ProjectFile
impl Eq for ProjectFile
impl StructuralPartialEq for ProjectFile
Auto Trait Implementations§
impl Freeze for ProjectFile
impl RefUnwindSafe for ProjectFile
impl Send for ProjectFile
impl Sync for ProjectFile
impl Unpin for ProjectFile
impl UnwindSafe for ProjectFile
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.