[−][src]Struct dropbox_sdk::files::RelocationArg
Fields
from_path: WritePathOrId
Path in the user's Dropbox to be copied or moved.
to_path: WritePathOrId
Path in the user's Dropbox that is the destination.
If true, copy()
will copy contents in shared folder, otherwise
RelocationError::CantCopySharedFolder
will be
returned if from_path
contains shared folder. This field is always true for
do_move()
.
autorename: bool
If there's a conflict, have the Dropbox server try to autorename the file to avoid the conflict.
allow_ownership_transfer: bool
Allow moves by owner even if it would result in an ownership transfer for the content being moved. This does not apply to copies.
Methods
impl RelocationArg
[src]
pub fn new(from_path: WritePathOrId, to_path: WritePathOrId) -> Self
[src]
pub fn with_allow_shared_folder(self, value: bool) -> Self
[src]
pub fn with_autorename(self, value: bool) -> Self
[src]
pub fn with_allow_ownership_transfer(self, value: bool) -> Self
[src]
Trait Implementations
impl Debug for RelocationArg
[src]
impl Serialize for RelocationArg
[src]
impl<'de> Deserialize<'de> for RelocationArg
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
Auto Trait Implementations
impl Unpin for RelocationArg
impl Sync for RelocationArg
impl Send for RelocationArg
impl UnwindSafe for RelocationArg
impl RefUnwindSafe for RelocationArg
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,