[−][src]Struct bollard::system::EventsOptions
Parameters used in the Events API
Examples
use bollard::system::EventsOptions; use chrono::{Duration, Utc}; use std::collections::HashMap; EventsOptions::<String>{ since: Utc::now() - Duration::minutes(20), until: Utc::now(), filters: HashMap::new() };
Fields
since: DateTime<Utc>
Show events created since this timestamp then stream new events.
until: DateTime<Utc>
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
impl<T: Clone> Clone for EventsOptions<T> where
T: AsRef<str> + Eq + Hash,
[src]
T: AsRef<str> + Eq + Hash,
fn clone(&self) -> EventsOptions<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug> Debug for EventsOptions<T> where
T: AsRef<str> + Eq + Hash,
[src]
T: AsRef<str> + Eq + Hash,
impl<'a, T: AsRef<str> + Eq + Hash> EventsQueryParams<&'a str, String> for EventsOptions<T> where
T: Serialize,
[src]
T: Serialize,
Auto Trait Implementations
impl<T> RefUnwindSafe for EventsOptions<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for EventsOptions<T> where
T: Send,
T: Send,
impl<T> Sync for EventsOptions<T> where
T: Sync,
T: Sync,
impl<T> Unpin for EventsOptions<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for EventsOptions<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,