#[non_exhaustive]pub struct TransferMessage {
pub message_time: Option<Timestamp>,
pub severity: MessageSeverity,
pub message_text: String,
/* private fields */
}Expand description
Represents a user facing message for a particular data transfer run.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.message_time: Option<Timestamp>Time when message was logged.
severity: MessageSeverityMessage severity.
message_text: StringMessage text.
Implementations§
Source§impl TransferMessage
impl TransferMessage
pub fn new() -> Self
Sourcepub fn set_message_time<T>(self, v: T) -> Self
pub fn set_message_time<T>(self, v: T) -> Self
Sets the value of message_time.
Sourcepub fn set_or_clear_message_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_message_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of message_time.
Sourcepub fn set_severity<T: Into<MessageSeverity>>(self, v: T) -> Self
pub fn set_severity<T: Into<MessageSeverity>>(self, v: T) -> Self
Sets the value of severity.
Sourcepub fn set_message_text<T: Into<String>>(self, v: T) -> Self
pub fn set_message_text<T: Into<String>>(self, v: T) -> Self
Sets the value of message_text.
Trait Implementations§
Source§impl Clone for TransferMessage
impl Clone for TransferMessage
Source§fn clone(&self) -> TransferMessage
fn clone(&self) -> TransferMessage
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 moreSource§impl Debug for TransferMessage
impl Debug for TransferMessage
Source§impl Default for TransferMessage
impl Default for TransferMessage
Source§fn default() -> TransferMessage
fn default() -> TransferMessage
Returns the “default value” for a type. Read more
Source§impl Message for TransferMessage
impl Message for TransferMessage
Source§impl PartialEq for TransferMessage
impl PartialEq for TransferMessage
impl StructuralPartialEq for TransferMessage
Auto Trait Implementations§
impl Freeze for TransferMessage
impl RefUnwindSafe for TransferMessage
impl Send for TransferMessage
impl Sync for TransferMessage
impl Unpin for TransferMessage
impl UnwindSafe for TransferMessage
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