Struct bson::RawJavaScriptCodeWithScope
source · pub struct RawJavaScriptCodeWithScope {
pub code: String,
pub scope: RawDocumentBuf,
}
Expand description
A BSON “code with scope” value backed by owned raw BSON.
Fields§
§code: String
The code value.
scope: RawDocumentBuf
The scope document.
Trait Implementations§
source§impl Clone for RawJavaScriptCodeWithScope
impl Clone for RawJavaScriptCodeWithScope
source§fn clone(&self) -> RawJavaScriptCodeWithScope
fn clone(&self) -> RawJavaScriptCodeWithScope
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 RawJavaScriptCodeWithScope
impl Debug for RawJavaScriptCodeWithScope
source§impl<'de> Deserialize<'de> for RawJavaScriptCodeWithScope
impl<'de> Deserialize<'de> for RawJavaScriptCodeWithScope
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 From<RawJavaScriptCodeWithScope> for RawBson
impl From<RawJavaScriptCodeWithScope> for RawBson
source§fn from(code_w_scope: RawJavaScriptCodeWithScope) -> Self
fn from(code_w_scope: RawJavaScriptCodeWithScope) -> Self
Converts to this type from the input type.
source§impl PartialEq<RawJavaScriptCodeWithScope> for RawJavaScriptCodeWithScope
impl PartialEq<RawJavaScriptCodeWithScope> for RawJavaScriptCodeWithScope
source§fn eq(&self, other: &RawJavaScriptCodeWithScope) -> bool
fn eq(&self, other: &RawJavaScriptCodeWithScope) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.