pub struct JavaScriptCodeWithScope {
pub code: String,
pub scope: Document,
}Expand description
Represents a BSON code with scope value.
Fields§
§code: String§scope: DocumentTrait Implementations§
Source§impl Clone for JavaScriptCodeWithScope
impl Clone for JavaScriptCodeWithScope
Source§fn clone(&self) -> JavaScriptCodeWithScope
fn clone(&self) -> JavaScriptCodeWithScope
Returns a duplicate 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 JavaScriptCodeWithScope
impl Debug for JavaScriptCodeWithScope
Source§impl<'de> Deserialize<'de> for JavaScriptCodeWithScope
impl<'de> Deserialize<'de> for JavaScriptCodeWithScope
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 Display for JavaScriptCodeWithScope
impl Display for JavaScriptCodeWithScope
Source§impl From<JavaScriptCodeWithScope> for Bson
impl From<JavaScriptCodeWithScope> for Bson
Source§fn from(code_with_scope: JavaScriptCodeWithScope) -> Bson
fn from(code_with_scope: JavaScriptCodeWithScope) -> Bson
Converts to this type from the input type.
Source§impl PartialEq for JavaScriptCodeWithScope
impl PartialEq for JavaScriptCodeWithScope
Source§impl Serialize for JavaScriptCodeWithScope
impl Serialize for JavaScriptCodeWithScope
impl StructuralPartialEq for JavaScriptCodeWithScope
Auto Trait Implementations§
impl Freeze for JavaScriptCodeWithScope
impl RefUnwindSafe for JavaScriptCodeWithScope
impl Send for JavaScriptCodeWithScope
impl Sync for JavaScriptCodeWithScope
impl Unpin for JavaScriptCodeWithScope
impl UnwindSafe for JavaScriptCodeWithScope
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