Struct bson::JavaScriptCodeWithScope
source · [−]Expand description
Represents a BSON code with scope value.
Fields
code: String
The JavaScript code.
scope: Document
The scope document containing variable bindings.
Trait Implementations
sourceimpl Clone for JavaScriptCodeWithScope
impl Clone for JavaScriptCodeWithScope
sourcefn clone(&self) -> JavaScriptCodeWithScope
fn clone(&self) -> JavaScriptCodeWithScope
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for JavaScriptCodeWithScope
impl Debug for JavaScriptCodeWithScope
sourceimpl<'de> Deserialize<'de> for JavaScriptCodeWithScope
impl<'de> Deserialize<'de> for JavaScriptCodeWithScope
sourcefn 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
sourceimpl Display for JavaScriptCodeWithScope
impl Display for JavaScriptCodeWithScope
sourceimpl From<JavaScriptCodeWithScope> for Bson
impl From<JavaScriptCodeWithScope> for Bson
sourcefn from(code_with_scope: JavaScriptCodeWithScope) -> Bson
fn from(code_with_scope: JavaScriptCodeWithScope) -> Bson
Converts to this type from the input type.
sourceimpl PartialEq<JavaScriptCodeWithScope> for JavaScriptCodeWithScope
impl PartialEq<JavaScriptCodeWithScope> for JavaScriptCodeWithScope
sourcefn eq(&self, other: &JavaScriptCodeWithScope) -> bool
fn eq(&self, other: &JavaScriptCodeWithScope) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &JavaScriptCodeWithScope) -> bool
fn ne(&self, other: &JavaScriptCodeWithScope) -> bool
This method tests for !=
.
sourceimpl Serialize for JavaScriptCodeWithScope
impl Serialize for JavaScriptCodeWithScope
impl StructuralPartialEq for JavaScriptCodeWithScope
Auto Trait Implementations
impl RefUnwindSafe for JavaScriptCodeWithScope
impl Send for JavaScriptCodeWithScope
impl Sync for JavaScriptCodeWithScope
impl Unpin for JavaScriptCodeWithScope
impl UnwindSafe for JavaScriptCodeWithScope
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more