#[non_exhaustive]pub struct PaperFolderCreateArg {
pub name: String,
pub parent_folder_id: Option<String>,
pub is_team_folder: Option<bool>,
}
Available on crate features
sync_routes
and dbx_paper
only.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.name: String
The 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§
Source§impl 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§
Source§impl Clone for PaperFolderCreateArg
impl Clone for PaperFolderCreateArg
Source§fn clone(&self) -> PaperFolderCreateArg
fn clone(&self) -> PaperFolderCreateArg
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 PaperFolderCreateArg
impl Debug for PaperFolderCreateArg
Source§impl<'de> Deserialize<'de> for PaperFolderCreateArg
impl<'de> Deserialize<'de> for PaperFolderCreateArg
Source§fn 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
Source§impl PartialEq for PaperFolderCreateArg
impl PartialEq for PaperFolderCreateArg
Source§impl Serialize for PaperFolderCreateArg
impl Serialize for PaperFolderCreateArg
impl Eq for PaperFolderCreateArg
impl StructuralPartialEq for PaperFolderCreateArg
Auto Trait Implementations§
impl Freeze for PaperFolderCreateArg
impl RefUnwindSafe for PaperFolderCreateArg
impl Send for PaperFolderCreateArg
impl Sync for PaperFolderCreateArg
impl Unpin for PaperFolderCreateArg
impl UnwindSafe for PaperFolderCreateArg
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.