Struct bson::RawJavaScriptCodeWithScopeRef
source · pub struct RawJavaScriptCodeWithScopeRef<'a> {
pub code: &'a str,
pub scope: &'a RawDocument,
}
Expand description
A BSON “code with scope” value referencing raw bytes stored elsewhere.
Fields§
§code: &'a str
The JavaScript code.
scope: &'a RawDocument
The scope document containing variable bindings.
Trait Implementations§
source§impl<'a> Clone for RawJavaScriptCodeWithScopeRef<'a>
impl<'a> Clone for RawJavaScriptCodeWithScopeRef<'a>
source§fn clone(&self) -> RawJavaScriptCodeWithScopeRef<'a>
fn clone(&self) -> RawJavaScriptCodeWithScopeRef<'a>
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<'a> Debug for RawJavaScriptCodeWithScopeRef<'a>
impl<'a> Debug for RawJavaScriptCodeWithScopeRef<'a>
source§impl<'de: 'a, 'a> Deserialize<'de> for RawJavaScriptCodeWithScopeRef<'a>
impl<'de: 'a, 'a> Deserialize<'de> for RawJavaScriptCodeWithScopeRef<'a>
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<'a> From<RawJavaScriptCodeWithScopeRef<'a>> for RawBsonRef<'a>
impl<'a> From<RawJavaScriptCodeWithScopeRef<'a>> for RawBsonRef<'a>
source§fn from(code_w_scope: RawJavaScriptCodeWithScopeRef<'a>) -> Self
fn from(code_w_scope: RawJavaScriptCodeWithScopeRef<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> PartialEq<RawJavaScriptCodeWithScopeRef<'a>> for RawJavaScriptCodeWithScopeRef<'a>
impl<'a> PartialEq<RawJavaScriptCodeWithScopeRef<'a>> for RawJavaScriptCodeWithScopeRef<'a>
source§fn eq(&self, other: &RawJavaScriptCodeWithScopeRef<'a>) -> bool
fn eq(&self, other: &RawJavaScriptCodeWithScopeRef<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.