pub struct EventsBuilder<'a> { /* private fields */ }Expand description
Builder for Events.
Implementations§
Source§impl<'a> EventsBuilder<'a>
impl<'a> EventsBuilder<'a>
Sourcepub fn name(&mut self, value: Name) -> &mut Self
pub fn name(&mut self, value: Name) -> &mut Self
The event name. A valid value is:
network-changednetwork-vif-pluggednetwork-vif-unpluggednetwork-vif-deletedvolume-extended(since microversion2.51)power-update(since microversion2.76)accelerator-request-bound(since microversion2.82)volume-reimaged(since microversion2.93)
Sourcepub fn server_uuid<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn server_uuid<VALUE: Into<Cow<'a, str>>>( &mut self, value: VALUE, ) -> &mut Self
The UUID of the server instance to which the API dispatches the event. You must assign this instance to a host. Otherwise, this call does not dispatch the event to the instance.
Sourcepub fn status(&mut self, value: Status) -> &mut Self
pub fn status(&mut self, value: Status) -> &mut Self
The event status. A valid value is failed, completed, or
in-progress. Default is completed.
Sourcepub fn tag<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn tag<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
A string value that identifies the event. Certain types of events require specific tags:
- For the
accelerator-request-boundevent, the tag must be the accelerator request UUID. - For the
power-updateevent the tag must be either bePOWER_ONorPOWER_OFF. - For the
volume-extendedevent the tag must be the volume id.
Trait Implementations§
Source§impl<'a> Clone for EventsBuilder<'a>
impl<'a> Clone for EventsBuilder<'a>
Source§fn clone(&self) -> EventsBuilder<'a>
fn clone(&self) -> EventsBuilder<'a>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<'a> Freeze for EventsBuilder<'a>
impl<'a> RefUnwindSafe for EventsBuilder<'a>
impl<'a> Send for EventsBuilder<'a>
impl<'a> Sync for EventsBuilder<'a>
impl<'a> Unpin for EventsBuilder<'a>
impl<'a> UnwindSafe for EventsBuilder<'a>
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more