pub struct MongoFunction {
pub body: String,
pub args: Vec<String>,
pub lang: String,
}Expand description
A MongoDB $function expression for custom JavaScript functions.
Fields§
§body: StringJavaScript function body.
args: Vec<String>Function arguments (field references or values).
lang: StringLanguage (always “js” for now).
Implementations§
Trait Implementations§
Source§impl Clone for MongoFunction
impl Clone for MongoFunction
Source§fn clone(&self) -> MongoFunction
fn clone(&self) -> MongoFunction
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 MongoFunction
impl Debug for MongoFunction
Source§impl<'de> Deserialize<'de> for MongoFunction
impl<'de> Deserialize<'de> for MongoFunction
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
Auto Trait Implementations§
impl Freeze for MongoFunction
impl RefUnwindSafe for MongoFunction
impl Send for MongoFunction
impl Sync for MongoFunction
impl Unpin for MongoFunction
impl UnwindSafe for MongoFunction
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