Struct bollard::system::EventsOptions [−][src]
Parameters used in the Events API
Examples
use bollard::system::EventsOptions; use chrono::{Duration, Utc}; use std::collections::HashMap; EventsOptions::<String>{ since: Some(Utc::now() - Duration::minutes(20)), until: Some(Utc::now()), filters: HashMap::new() };
Fields
since: Option<DateTime<Utc>>
Show events created since this timestamp then stream new events.
until: Option<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: Into<String> + Eq + Hash + Serialize,
[src]
T: Into<String> + Eq + Hash + Serialize,
fn clone(&self) -> EventsOptions<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug> Debug for EventsOptions<T> where
T: Into<String> + Eq + Hash + Serialize,
[src]
T: Into<String> + Eq + Hash + Serialize,
impl<T: Default> Default for EventsOptions<T> where
T: Into<String> + Eq + Hash + Serialize,
[src]
T: Into<String> + Eq + Hash + Serialize,
fn default() -> EventsOptions<T>
[src]
impl<T> Serialize for EventsOptions<T> where
T: Into<String> + Eq + Hash + Serialize,
[src]
T: Into<String> + Eq + Hash + Serialize,
Auto Trait Implementations
impl<T> RefUnwindSafe for EventsOptions<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for EventsOptions<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for EventsOptions<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for EventsOptions<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for EventsOptions<T> where
T: UnwindSafe,
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,