Struct bson::raw::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
sourceimpl<'a> Clone for RawJavaScriptCodeWithScopeRef<'a>
impl<'a> Clone for RawJavaScriptCodeWithScopeRef<'a>
sourcefn clone(&self) -> RawJavaScriptCodeWithScopeRef<'a>
fn clone(&self) -> RawJavaScriptCodeWithScopeRef<'a>
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<'a> Debug for RawJavaScriptCodeWithScopeRef<'a>
impl<'a> Debug for RawJavaScriptCodeWithScopeRef<'a>
sourceimpl<'de: 'a, 'a> Deserialize<'de> for RawJavaScriptCodeWithScopeRef<'a>
impl<'de: 'a, 'a> Deserialize<'de> for RawJavaScriptCodeWithScopeRef<'a>
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<'a> From<RawJavaScriptCodeWithScopeRef<'a>> for RawBsonRef<'a>
impl<'a> From<RawJavaScriptCodeWithScopeRef<'a>> for RawBsonRef<'a>
sourcefn from(code_w_scope: RawJavaScriptCodeWithScopeRef<'a>) -> Self
fn from(code_w_scope: RawJavaScriptCodeWithScopeRef<'a>) -> Self
Converts to this type from the input type.
sourceimpl<'a> PartialEq<RawJavaScriptCodeWithScopeRef<'a>> for RawJavaScriptCodeWithScopeRef<'a>
impl<'a> PartialEq<RawJavaScriptCodeWithScopeRef<'a>> for RawJavaScriptCodeWithScopeRef<'a>
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &RawJavaScriptCodeWithScopeRef<'a>) -> bool
fn ne(&self, other: &RawJavaScriptCodeWithScopeRef<'a>) -> bool
This method tests for !=
.
sourceimpl<'a> Serialize for RawJavaScriptCodeWithScopeRef<'a>
impl<'a> Serialize for RawJavaScriptCodeWithScopeRef<'a>
impl<'a> Copy for RawJavaScriptCodeWithScopeRef<'a>
impl<'a> StructuralPartialEq for RawJavaScriptCodeWithScopeRef<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for RawJavaScriptCodeWithScopeRef<'a>
impl<'a> Send for RawJavaScriptCodeWithScopeRef<'a>
impl<'a> Sync for RawJavaScriptCodeWithScopeRef<'a>
impl<'a> Unpin for RawJavaScriptCodeWithScopeRef<'a>
impl<'a> UnwindSafe for RawJavaScriptCodeWithScopeRef<'a>
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