pub struct MongoWindow {
pub documents: Option<[WindowBound; 2]>,
pub range: Option<[WindowBound; 2]>,
pub unit: Option<String>,
}Expand description
MongoDB window specification.
Fields§
§documents: Option<[WindowBound; 2]>Documents array [start, end].
range: Option<[WindowBound; 2]>Range array [start, end].
unit: Option<String>Unit for range (day, week, month, etc.).
Implementations§
Source§impl MongoWindow
impl MongoWindow
Sourcepub fn documents_unbounded() -> Self
pub fn documents_unbounded() -> Self
Unbounded documents window.
Sourcepub fn documents_to_current() -> Self
pub fn documents_to_current() -> Self
Documents from unbounded preceding to current.
Trait Implementations§
Source§impl Clone for MongoWindow
impl Clone for MongoWindow
Source§fn clone(&self) -> MongoWindow
fn clone(&self) -> MongoWindow
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 MongoWindow
impl Debug for MongoWindow
Source§impl<'de> Deserialize<'de> for MongoWindow
impl<'de> Deserialize<'de> for MongoWindow
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 PartialEq for MongoWindow
impl PartialEq for MongoWindow
Source§impl Serialize for MongoWindow
impl Serialize for MongoWindow
impl StructuralPartialEq for MongoWindow
Auto Trait Implementations§
impl Freeze for MongoWindow
impl RefUnwindSafe for MongoWindow
impl Send for MongoWindow
impl Sync for MongoWindow
impl Unpin for MongoWindow
impl UnwindSafe for MongoWindow
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