Skip to main content

ProjectFolder

Struct ProjectFolder 

Source
pub struct ProjectFolder { /* private fields */ }

Implementations§

Source§

impl ProjectFolder

Source

pub fn project(&self) -> Ref<Project>

Get the project that owns this folder

Source

pub fn id(&self) -> String

Get the unique id of this folder

Source

pub fn name(&self) -> String

Get the name of this folder

Source

pub fn set_name(&self, value: &str) -> bool

Set the name of this folder

Source

pub fn description(&self) -> String

Get the description of this folder

Source

pub fn set_description(&self, value: &str) -> bool

Set the description of this folder

Source

pub fn parent(&self) -> Option<Ref<ProjectFolder>>

Get the folder that contains this folder

Source

pub fn set_folder(&self, folder: Option<&ProjectFolder>) -> bool

Set the folder that contains this folder

Source

pub fn export(&self, dest: &Path) -> bool

Recursively export this folder to disk, returns `true’ if the export succeeded

  • dest - Destination path for the exported contents
Source

pub fn export_with_progress<P>(&self, dest: &Path, progress: P) -> bool

Recursively export this folder to disk, returns `true’ if the export succeeded

  • dest - Destination path for the exported contents
  • progress - ProgressCallback that will be called as contents are exporting
Source

pub fn files(&self) -> Array<ProjectFile>

Get the files contained in this folder

Trait Implementations§

Source§

impl CoreArrayProvider for ProjectFolder

Source§

impl Debug for ProjectFolder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for ProjectFolder

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Send for ProjectFolder

Source§

impl Sync for ProjectFolder

Source§

impl ToOwned for ProjectFolder

Source§

type Owned = Ref<ProjectFolder>

The resulting type after obtaining ownership.
Source§

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)

Uses borrowed data to replace owned data, usually by cloning. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more