Struct bollard::system::EventsOptions
source · pub struct EventsOptions<T>{
pub since: Option<String>,
pub until: Option<String>,
pub filters: HashMap<T, Vec<T>>,
}
Expand description
Parameters used in the Events API
§Examples
use bollard::system::EventsOptions;
use time::{Duration, OffsetDateTime};
use std::collections::HashMap;
EventsOptions::<String>{
since: Some(OffsetDateTime::now_utc() - Duration::minutes(20)),
until: Some(OffsetDateTime::now_utc()),
filters: HashMap::new()
};
Fields§
§since: Option<String>
Show events created since this timestamp then stream new events.
until: Option<String>
Show events created until this timestamp then stop streaming.
filters: HashMap<T, Vec<T>>
A JSON encoded value of filters (a map[string][]string
) to process on the event list. Available filters:
config=<string>
config name or IDcontainer=<string>
container name or IDdaemon=<string>
daemon name or IDevent=<string>
event typeimage=<string>
image name or IDlabel=<string>
image or container labelnetwork=<string>
network name or IDnode=<string>
node IDplugin
= plugin name or IDscope
= local or swarmsecret=<string>
secret name or IDservice=<string>
service name or IDtype=<string>
object to filter by, one ofcontainer
,image
,volume
,network
,daemon
,plugin
,node
,service
,secret
orconfig
volume=<string>
volume name
Trait Implementations§
source§impl<T> Clone for EventsOptions<T>
impl<T> Clone for EventsOptions<T>
source§fn clone(&self) -> EventsOptions<T>
fn clone(&self) -> EventsOptions<T>
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<T> Debug for EventsOptions<T>
impl<T> Debug for EventsOptions<T>
source§impl<T> Default for EventsOptions<T>
impl<T> Default for EventsOptions<T>
source§fn default() -> EventsOptions<T>
fn default() -> EventsOptions<T>
Returns the “default value” for a type. Read more
source§impl<T> PartialEq for EventsOptions<T>
impl<T> PartialEq for EventsOptions<T>
source§impl<T> Serialize for EventsOptions<T>
impl<T> Serialize for EventsOptions<T>
impl<T> StructuralPartialEq for EventsOptions<T>
Auto Trait Implementations§
impl<T> Freeze for EventsOptions<T>
impl<T> RefUnwindSafe for EventsOptions<T>where
T: RefUnwindSafe,
impl<T> Send for EventsOptions<T>where
T: Send,
impl<T> Sync for EventsOptions<T>where
T: Sync,
impl<T> Unpin for EventsOptions<T>where
T: Unpin,
impl<T> UnwindSafe for EventsOptions<T>where
T: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)