pub struct ResourceCopyParams {
pub channel: Uri,
pub source: Uri,
pub destination: Uri,
pub fail_if_exists: Option<bool>,
}Expand description
Copies a resource from one URI to another on the server’s filesystem.
If the destination already exists, it is overwritten unless failIfExists
is set.
Like all resource* methods, resourceCopy is symmetrical and MAY be
sent in either direction.
Fields§
§channel: UriChannel URI this command targets.
source: UriSource URI to copy from
destination: UriDestination URI to copy to
fail_if_exists: Option<bool>If true, the server MUST fail if the destination already exists instead
of overwriting it.
Trait Implementations§
Source§impl Clone for ResourceCopyParams
impl Clone for ResourceCopyParams
Source§fn clone(&self) -> ResourceCopyParams
fn clone(&self) -> ResourceCopyParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResourceCopyParams
impl Debug for ResourceCopyParams
Source§impl<'de> Deserialize<'de> for ResourceCopyParams
impl<'de> Deserialize<'de> for ResourceCopyParams
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 PartialEq for ResourceCopyParams
impl PartialEq for ResourceCopyParams
Source§fn eq(&self, other: &ResourceCopyParams) -> bool
fn eq(&self, other: &ResourceCopyParams) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ResourceCopyParams
impl Serialize for ResourceCopyParams
impl StructuralPartialEq for ResourceCopyParams
Auto Trait Implementations§
impl Freeze for ResourceCopyParams
impl RefUnwindSafe for ResourceCopyParams
impl Send for ResourceCopyParams
impl Sync for ResourceCopyParams
impl Unpin for ResourceCopyParams
impl UnsafeUnpin for ResourceCopyParams
impl UnwindSafe for ResourceCopyParams
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