pub struct ConfigEditorActions {
pub create_project_config: Option<String>,
pub bool_changes: Vec<(ConfigBoolField, bool)>,
pub text_changes: Vec<(ConfigTextField, String)>,
pub is_global: bool,
pub project_name: Option<String>,
pub reset_to_defaults: bool,
}Expand description
Actions that can be returned from config editor rendering (US-006, US-007, US-009).
This struct collects all actions that require mutation, allowing the
render methods to remain &self while the parent processes mutations.
Fields§
§create_project_config: Option<String>If set, create a project config from global (US-005).
bool_changes: Vec<(ConfigBoolField, bool)>Boolean field changes with (field, new_value) (US-006).
text_changes: Vec<(ConfigTextField, String)>Text field changes with (field, new_value) (US-007).
is_global: boolWhether we’re editing global (true) or project (false) config.
project_name: Option<String>Project name if editing project config.
reset_to_defaults: boolIf true, reset the config to defaults (US-009).
Trait Implementations§
Source§impl Debug for ConfigEditorActions
impl Debug for ConfigEditorActions
Source§impl Default for ConfigEditorActions
impl Default for ConfigEditorActions
Source§fn default() -> ConfigEditorActions
fn default() -> ConfigEditorActions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConfigEditorActions
impl RefUnwindSafe for ConfigEditorActions
impl Send for ConfigEditorActions
impl Sync for ConfigEditorActions
impl Unpin for ConfigEditorActions
impl UnwindSafe for ConfigEditorActions
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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