#[non_exhaustive]pub struct TransferResourceResponse {
pub source: String,
pub target: String,
pub error: Option<Status>,
/* private fields */
}Expand description
Transfer response for a single resource.
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.source: StringFull name of the resource to transfer as specified in the request.
target: StringFull name of the new resource successfully transferred from the source hosted by Translation API. Target will be empty if the transfer failed.
error: Option<Status>The error result in case of failure.
Implementations§
Source§impl TransferResourceResponse
impl TransferResourceResponse
pub fn new() -> Self
Sourcepub fn set_source<T: Into<String>>(self, v: T) -> Self
pub fn set_source<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_target<T: Into<String>>(self, v: T) -> Self
pub fn set_target<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_or_clear_error<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_error<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for TransferResourceResponse
impl Clone for TransferResourceResponse
Source§fn clone(&self) -> TransferResourceResponse
fn clone(&self) -> TransferResourceResponse
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 TransferResourceResponse
impl Debug for TransferResourceResponse
Source§impl Default for TransferResourceResponse
impl Default for TransferResourceResponse
Source§fn default() -> TransferResourceResponse
fn default() -> TransferResourceResponse
Returns the “default value” for a type. Read more
Source§impl Message for TransferResourceResponse
impl Message for TransferResourceResponse
Source§impl PartialEq for TransferResourceResponse
impl PartialEq for TransferResourceResponse
impl StructuralPartialEq for TransferResourceResponse
Auto Trait Implementations§
impl Freeze for TransferResourceResponse
impl RefUnwindSafe for TransferResourceResponse
impl Send for TransferResourceResponse
impl Sync for TransferResourceResponse
impl Unpin for TransferResourceResponse
impl UnsafeUnpin for TransferResourceResponse
impl UnwindSafe for TransferResourceResponse
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