Struct LibraryResponse

Source
pub struct LibraryResponse {
Show 21 fields pub import: bool, pub add_to_timeline: Vec<u64>, pub open_paths: Vec<PathBuf>, pub remove: Vec<u64>, pub clear_recent: bool, pub edited: bool, pub settings_changed: bool, pub convert: Vec<(u64, String)>, pub regen_proxy: Vec<String>, pub convert_dialog: Option<u64>, pub compress: Option<u64>, pub open_sequence: Option<u64>, pub place_template: Vec<String>, pub import_url: bool, pub edit_labels: bool, pub new_adjustment: bool, pub open_dialog: bool, pub add_effect: Option<EffectKind>, pub apply_preset: Option<usize>, pub copy_graph: Option<u64>, pub preview: Option<PathBuf>,
}

Fields§

§import: bool§add_to_timeline: Vec<u64>§open_paths: Vec<PathBuf>

Files to import into the library (and select).

§remove: Vec<u64>§clear_recent: bool§edited: bool

The project changed (folders / tags / labels edited) — app pushes undo via undo first.

§settings_changed: bool

settings.recent_assets changed (tags / labels / pins / removals) — app saves settings.

§convert: Vec<(u64, String)>

(asset id, target extension) — start a Convert To… with the default options.

§regen_proxy: Vec<String>

Source paths whose proxy should be rebuilt (the app releases decoders, deletes, rescans).

§convert_dialog: Option<u64>

Asset for which the app should open the Convert To… options dialog.

§compress: Option<u64>

Asset for which the app should open the Compress… dialog.

§open_sequence: Option<u64>

Sequence to open for editing (double-clicked in the Sequences section).

§place_template: Vec<String>

Template names to place at the playhead.

§import_url: bool

The user asked to import media from a URL (the app opens the Import URL window).

§edit_labels: bool

“Edit labels…” was picked in a label menu — the app opens the label editor (Inspector).

§new_adjustment: bool

“New ▸ Adjustment layer” — the app runs Action::AddAdjustment.

§open_dialog: bool

“Open…” — the app runs Action::OpenFile (its own file dialog / recents handling).

§add_effect: Option<EffectKind>

An effect kind picked in the reuse sections — the app adds it to every selected visual clip.

§apply_preset: Option<usize>

Index into Settings::effect_presets to apply to the selection (chain or node graph).

§copy_graph: Option<u64>

Clip whose node graph should be copied onto the selection.

§preview: Option<PathBuf>

The file the anchor of the selection now points at — the app may show it in the source viewer. The library previews it itself either way.

Trait Implementations§

Source§

impl Default for LibraryResponse

Source§

fn default() -> LibraryResponse

Returns the “default value” for a type. 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<S> FromSample<S> for S

§

fn from_sample_(s: S) -> S

§

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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T, U> ToSample<U> for T
where U: FromSample<T>,

§

fn to_sample_(self) -> U

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
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<S, T> Duplex<S> for T
where T: FromSample<S> + ToSample<S>,

§

impl<T> MaybeSend for T

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,