pub struct RemoteFolder { /* private fields */ }
Implementations§
source§impl RemoteFolder
impl RemoteFolder
sourcepub fn core_folder(&self) -> Result<Ref<ProjectFolder>, ()>
pub fn core_folder(&self) -> Result<Ref<ProjectFolder>, ()>
Get the core folder associated with this remote folder.
sourcepub fn parent(&self) -> Result<Option<Ref<RemoteFolder>>, ()>
pub fn parent(&self) -> Result<Option<Ref<RemoteFolder>>, ()>
Get the parent folder, if available.
sourcepub fn set_parent(&self, parent: Option<&RemoteFolder>) -> Result<(), ()>
pub fn set_parent(&self, parent: Option<&RemoteFolder>) -> Result<(), ()>
Set the parent folder. You will need to push the folder to update the remote version.
sourcepub fn parent_id(&self) -> Option<BnString>
pub fn parent_id(&self) -> Option<BnString>
Unique id of parent folder, if there is a parent. None, otherwise
sourcepub fn set_name<S: BnStrCompatible>(&self, name: S) -> Result<(), ()>
pub fn set_name<S: BnStrCompatible>(&self, name: S) -> Result<(), ()>
Set the display name of the folder. You will need to push the folder to update the remote version.
sourcepub fn description(&self) -> BnString
pub fn description(&self) -> BnString
Description of the folder
sourcepub fn set_description<S: BnStrCompatible>(
&self,
description: S,
) -> Result<(), ()>
pub fn set_description<S: BnStrCompatible>( &self, description: S, ) -> Result<(), ()>
Set the description of the folder. You will need to push the folder to update the remote version.
Trait Implementations§
source§impl CoreArrayProvider for RemoteFolder
impl CoreArrayProvider for RemoteFolder
source§impl PartialEq for RemoteFolder
impl PartialEq for RemoteFolder
source§impl ToOwned for RemoteFolder
impl ToOwned for RemoteFolder
source§type Owned = Ref<RemoteFolder>
type Owned = Ref<RemoteFolder>
The resulting type after obtaining ownership.
source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
impl Eq for RemoteFolder
Auto Trait Implementations§
impl Freeze for RemoteFolder
impl RefUnwindSafe for RemoteFolder
impl !Send for RemoteFolder
impl !Sync for RemoteFolder
impl Unpin for RemoteFolder
impl UnwindSafe for RemoteFolder
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