pub struct PropertyFolder { /* private fields */ }Implementations§
Source§impl PropertyFolder
impl PropertyFolder
pub fn to_object(&self) -> Object
pub fn conn(&self) -> Result<Rc<Connection>, ExpiredConnectionError>
Source§impl PropertyFolder
impl PropertyFolder
pub fn delete(self) -> Result<(), PropertyFolderError>
pub fn exists(&self) -> Result<bool, PropertyFolderError>
pub fn location(&self) -> Result<Location<PropertyFolder>, PropertyFolderError>
pub fn set_location( &mut self, target_folder: Option<PropertyFolder>, target_position: FolderPosition, ) -> Result<(), PropertyFolderError>
pub fn name(&self) -> Result<String, PropertyFolderError>
pub fn set_name( &mut self, new_name: impl AsRef<str>, ) -> Result<(), PropertyFolderError>
pub fn information(&self) -> Result<String, PropertyFolderError>
pub fn set_information( &mut self, new_information: impl AsRef<str>, ) -> Result<(), PropertyFolderError>
pub fn scope(&self) -> Result<PropertyScope, PropertyFolderError>
Source§impl PropertyFolder
impl PropertyFolder
pub fn new( conn: Rc<Connection>, scope: PropertyScope, parent_folder: Option<&PropertyFolder>, position: FolderPosition, name: impl AsRef<str>, information: impl AsRef<str>, ) -> Result<Self, PropertyFolderError>
Source§impl PropertyFolder
impl PropertyFolder
pub fn to_folder(&self) -> Folder
pub fn from_folder( folder: &Folder, ) -> Result<PropertyFolder, PropertyFolderError>
Source§impl PropertyFolder
impl PropertyFolder
pub fn get_children(&self) -> Result<Vec<PropertyObject>, PropertyFolderError>
pub fn get_children_count(&self) -> Result<usize, PropertyFolderError>
Trait Implementations§
Source§impl Clone for PropertyFolder
impl Clone for PropertyFolder
Source§fn clone(&self) -> PropertyFolder
fn clone(&self) -> PropertyFolder
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 PropertyFolder
impl Debug for PropertyFolder
Source§impl Display for PropertyFolder
impl Display for PropertyFolder
Source§impl FromId for PropertyFolder
impl FromId for PropertyFolder
fn from_id(conn: Rc<Connection>, id: TypedId) -> Result<Self, FromIdError>
Source§impl Hash for PropertyFolder
impl Hash for PropertyFolder
Source§impl Ord for PropertyFolder
impl Ord for PropertyFolder
Source§impl PartialEq<PropertyFolder> for &PropertyFolder
impl PartialEq<PropertyFolder> for &PropertyFolder
Source§impl PartialEq for PropertyFolder
impl PartialEq for PropertyFolder
Source§impl PartialOrd for PropertyFolder
impl PartialOrd for PropertyFolder
impl Eq for PropertyFolder
Auto Trait Implementations§
impl Freeze for PropertyFolder
impl !RefUnwindSafe for PropertyFolder
impl !Send for PropertyFolder
impl !Sync for PropertyFolder
impl Unpin for PropertyFolder
impl !UnwindSafe for PropertyFolder
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more