pub struct PointInTime { /* private fields */ }
Expand description
A point in time (PIT) is a point that represents a consistent view of the data at that time.
Implementations§
Source§impl PointInTime
impl PointInTime
Sourcepub fn new<T>(id: T, keep_alive: Time) -> Selfwhere
T: ToString,
pub fn new<T>(id: T, keep_alive: Time) -> Selfwhere
T: ToString,
Creates a new instance of PointInTime
.
- The
id
parameter tells Elasticsearch to execute the request using contexts from this point in time. - The
keep_alive
parameter tells Elasticsearch how long it should extend the time to live of the point in time.
Trait Implementations§
Source§impl Clone for PointInTime
impl Clone for PointInTime
Source§fn clone(&self) -> PointInTime
fn clone(&self) -> PointInTime
Returns a copy 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 PointInTime
impl Debug for PointInTime
Source§impl PartialEq for PointInTime
impl PartialEq for PointInTime
Source§impl Serialize for PointInTime
impl Serialize for PointInTime
impl Eq for PointInTime
impl StructuralPartialEq for PointInTime
Auto Trait Implementations§
impl Freeze for PointInTime
impl RefUnwindSafe for PointInTime
impl Send for PointInTime
impl Sync for PointInTime
impl Unpin for PointInTime
impl UnwindSafe for PointInTime
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