Struct dropbox_sdk::paper::PaperFolderCreateArg
source · [−]#[non_exhaustive]pub struct PaperFolderCreateArg {
pub name: String,
pub parent_folder_id: Option<String>,
pub is_team_folder: Option<bool>,
}dbx_paper only.Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe name of the new Paper folder.
parent_folder_id: Option<String>The encrypted Paper folder Id where the new Paper folder should be created. The API user has to have write access to this folder or error is thrown. If not supplied, the new folder will be created at top level.
is_team_folder: Option<bool>Whether the folder to be created should be a team folder. This value will be ignored if parent_folder_id is supplied, as the new folder will inherit the type (private or team folder) from its parent. We will by default create a top-level private folder if both parent_folder_id and is_team_folder are not supplied.
Implementations
sourceimpl PaperFolderCreateArg
impl PaperFolderCreateArg
pub fn new(name: String) -> Self
pub fn with_parent_folder_id(self, value: String) -> Self
pub fn with_is_team_folder(self, value: bool) -> Self
Trait Implementations
sourceimpl Clone for PaperFolderCreateArg
impl Clone for PaperFolderCreateArg
sourcefn clone(&self) -> PaperFolderCreateArg
fn clone(&self) -> PaperFolderCreateArg
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for PaperFolderCreateArg
impl Debug for PaperFolderCreateArg
sourceimpl<'de> Deserialize<'de> for PaperFolderCreateArg
impl<'de> Deserialize<'de> for PaperFolderCreateArg
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<PaperFolderCreateArg> for PaperFolderCreateArg
impl PartialEq<PaperFolderCreateArg> for PaperFolderCreateArg
sourcefn eq(&self, other: &PaperFolderCreateArg) -> bool
fn eq(&self, other: &PaperFolderCreateArg) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &PaperFolderCreateArg) -> bool
fn ne(&self, other: &PaperFolderCreateArg) -> bool
This method tests for !=.
sourceimpl Serialize for PaperFolderCreateArg
impl Serialize for PaperFolderCreateArg
impl Eq for PaperFolderCreateArg
impl StructuralEq for PaperFolderCreateArg
impl StructuralPartialEq for PaperFolderCreateArg
Auto Trait Implementations
impl RefUnwindSafe for PaperFolderCreateArg
impl Send for PaperFolderCreateArg
impl Sync for PaperFolderCreateArg
impl Unpin for PaperFolderCreateArg
impl UnwindSafe for PaperFolderCreateArg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more