Struct leetcode_api::leetcode::question::qs_detail::question::CodeSnippet
source · pub struct CodeSnippet {
pub lang: String,
pub lang_slug: String,
pub code: String,
}
Expand description
language and it’s snippet
Fields§
§lang: String
§lang_slug: String
§code: String
Trait Implementations§
source§impl Clone for CodeSnippet
impl Clone for CodeSnippet
source§fn clone(&self) -> CodeSnippet
fn clone(&self) -> CodeSnippet
Returns a copy 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 CodeSnippet
impl Debug for CodeSnippet
source§impl Default for CodeSnippet
impl Default for CodeSnippet
source§fn default() -> CodeSnippet
fn default() -> CodeSnippet
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CodeSnippet
impl<'de> Deserialize<'de> for CodeSnippet
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 PartialEq for CodeSnippet
impl PartialEq for CodeSnippet
source§fn eq(&self, other: &CodeSnippet) -> bool
fn eq(&self, other: &CodeSnippet) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CodeSnippet
impl Serialize for CodeSnippet
impl Eq for CodeSnippet
impl StructuralPartialEq for CodeSnippet
Auto Trait Implementations§
impl RefUnwindSafe for CodeSnippet
impl Send for CodeSnippet
impl Sync for CodeSnippet
impl Unpin for CodeSnippet
impl UnwindSafe for CodeSnippet
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.