pub struct ScopedCode {
pub code_string: Option<String>,
pub scope: Value,
}Expand description
Code with the scope it runs in. The original has a second, generic class
whose scope is typed; a scope here is a Value, which holds an object
of any class, so the one struct serves both.
Fields§
§code_string: Option<String>§scope: ValueTrait Implementations§
Source§impl BsonValue for ScopedCode
impl BsonValue for ScopedCode
Source§impl Clone for ScopedCode
impl Clone for ScopedCode
Source§impl Debug for ScopedCode
impl Debug for ScopedCode
Source§impl Default for ScopedCode
impl Default for ScopedCode
Source§impl PartialEq for ScopedCode
impl PartialEq for ScopedCode
impl StructuralPartialEq for ScopedCode
Auto Trait Implementations§
impl !RefUnwindSafe for ScopedCode
impl !UnwindSafe for ScopedCode
impl Freeze for ScopedCode
impl Send for ScopedCode
impl Sync for ScopedCode
impl Unpin for ScopedCode
impl UnsafeUnpin for ScopedCode
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