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,secretorconfigvolume=<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