#[non_exhaustive]pub struct MigrationTaskResult {
pub details: Option<Details>,
/* private fields */
}Expand description
The migration task result.
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.details: Option<Details>Details specific to the task type.
Implementations§
Source§impl MigrationTaskResult
impl MigrationTaskResult
pub fn new() -> Self
Sourcepub fn set_details<T: Into<Option<Details>>>(self, v: T) -> Self
pub fn set_details<T: Into<Option<Details>>>(self, v: T) -> Self
Sets the value of details.
Note that all the setters affecting details are mutually
exclusive.
Sourcepub fn translation_task_result(&self) -> Option<&Box<TranslationTaskResult>>
pub fn translation_task_result(&self) -> Option<&Box<TranslationTaskResult>>
The value of details
if it holds a TranslationTaskResult, None if the field is not set or
holds a different branch.
Sourcepub fn set_translation_task_result<T: Into<Box<TranslationTaskResult>>>(
self,
v: T,
) -> Self
pub fn set_translation_task_result<T: Into<Box<TranslationTaskResult>>>( self, v: T, ) -> Self
Sets the value of details
to hold a TranslationTaskResult.
Note that all the setters affecting details are
mutually exclusive.
Trait Implementations§
Source§impl Clone for MigrationTaskResult
impl Clone for MigrationTaskResult
Source§fn clone(&self) -> MigrationTaskResult
fn clone(&self) -> MigrationTaskResult
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 MigrationTaskResult
impl Debug for MigrationTaskResult
Source§impl Default for MigrationTaskResult
impl Default for MigrationTaskResult
Source§fn default() -> MigrationTaskResult
fn default() -> MigrationTaskResult
Returns the “default value” for a type. Read more
Source§impl Message for MigrationTaskResult
impl Message for MigrationTaskResult
Source§impl PartialEq for MigrationTaskResult
impl PartialEq for MigrationTaskResult
impl StructuralPartialEq for MigrationTaskResult
Auto Trait Implementations§
impl Freeze for MigrationTaskResult
impl RefUnwindSafe for MigrationTaskResult
impl Send for MigrationTaskResult
impl Sync for MigrationTaskResult
impl Unpin for MigrationTaskResult
impl UnwindSafe for MigrationTaskResult
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