pub struct ProgressUpdateEventBody {
pub progress_id: String,
pub message: Option<String>,
pub percentage: Option<u8>,
/* private fields */
}
Fields§
§progress_id: String
The ID that was introduced in the initial ‘progressStart’ event.
message: Option<String>
Optional, more detailed progress message. If omitted, the previous message (if any) is used.
percentage: Option<u8>
Optional progress percentage to display (value range: 0 to 100). If omitted no percentage will be shown.
Implementations§
Source§impl ProgressUpdateEventBody
impl ProgressUpdateEventBody
Sourcepub fn builder() -> ProgressUpdateEventBodyBuilder<((), (), ())>
pub fn builder() -> ProgressUpdateEventBodyBuilder<((), (), ())>
Create a builder for building ProgressUpdateEventBody
.
On the builder, call .progress_id(...)
, .message(...)
(optional), .percentage(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of ProgressUpdateEventBody
.
Trait Implementations§
Source§impl Clone for ProgressUpdateEventBody
impl Clone for ProgressUpdateEventBody
Source§fn clone(&self) -> ProgressUpdateEventBody
fn clone(&self) -> ProgressUpdateEventBody
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ProgressUpdateEventBody
impl Debug for ProgressUpdateEventBody
Source§impl<'de> Deserialize<'de> for ProgressUpdateEventBody
impl<'de> Deserialize<'de> for ProgressUpdateEventBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ProgressUpdateEventBody> for Event
impl From<ProgressUpdateEventBody> for Event
Source§fn from(body: ProgressUpdateEventBody) -> Self
fn from(body: ProgressUpdateEventBody) -> Self
Converts to this type from the input type.
Source§impl From<ProgressUpdateEventBody> for ProtocolMessageContent
impl From<ProgressUpdateEventBody> for ProtocolMessageContent
Source§fn from(body: ProgressUpdateEventBody) -> Self
fn from(body: ProgressUpdateEventBody) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ProgressUpdateEventBody
impl PartialEq for ProgressUpdateEventBody
Source§fn eq(&self, other: &ProgressUpdateEventBody) -> bool
fn eq(&self, other: &ProgressUpdateEventBody) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl Serialize for ProgressUpdateEventBody
impl Serialize for ProgressUpdateEventBody
impl Eq for ProgressUpdateEventBody
impl StructuralPartialEq for ProgressUpdateEventBody
Auto Trait Implementations§
impl Freeze for ProgressUpdateEventBody
impl RefUnwindSafe for ProgressUpdateEventBody
impl Send for ProgressUpdateEventBody
impl Sync for ProgressUpdateEventBody
impl Unpin for ProgressUpdateEventBody
impl UnwindSafe for ProgressUpdateEventBody
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.