Struct re_log_types::BlueprintActivationCommand
source · pub struct BlueprintActivationCommand {
pub blueprint_id: StoreId,
pub make_active: bool,
pub make_default: bool,
}
Expand description
Command used for activating a blueprint once it has been fully transmitted.
This command serves two purposes:
- It is important that a blueprint is never activated before it has been fully transmitted. Displaying, or allowing a user to modify, a half-transmitted blueprint can cause confusion and bad interactions with the space view heuristics.
- Additionally, this command allows fine-tuning the activation behavior itself by specifying whether the blueprint should be immediately activated, or only become the default for future activations.
Fields§
§blueprint_id: StoreId
The blueprint this command refers to.
make_active: bool
Immediately make this the active blueprint for the associated app_id
.
Note that setting this to false
does not mean the blueprint may not still end
up becoming active. In particular, if make_default
is true and there is no other
currently active blueprint.
make_default: bool
Make this the default blueprint for the app_id
.
The default blueprint will be used as the template when the user resets the blueprint for the app. It will also become the active blueprint if no other blueprint is currently active.
Implementations§
source§impl BlueprintActivationCommand
impl BlueprintActivationCommand
sourcepub fn make_default(blueprint_id: StoreId) -> Self
pub fn make_default(blueprint_id: StoreId) -> Self
Make blueprint_id
the default blueprint for its associated app_id
.
sourcepub fn make_active(blueprint_id: StoreId) -> Self
pub fn make_active(blueprint_id: StoreId) -> Self
Immediately make blueprint_id
the active blueprint for its associated app_id
.
This also sets make_default
to true.
Trait Implementations§
source§impl Clone for BlueprintActivationCommand
impl Clone for BlueprintActivationCommand
source§fn clone(&self) -> BlueprintActivationCommand
fn clone(&self) -> BlueprintActivationCommand
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BlueprintActivationCommand
impl Debug for BlueprintActivationCommand
source§impl<'de> Deserialize<'de> for BlueprintActivationCommand
impl<'de> Deserialize<'de> for BlueprintActivationCommand
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl From<BlueprintActivationCommand> for LogMsg
impl From<BlueprintActivationCommand> for LogMsg
source§fn from(value: BlueprintActivationCommand) -> Self
fn from(value: BlueprintActivationCommand) -> Self
source§impl PartialEq for BlueprintActivationCommand
impl PartialEq for BlueprintActivationCommand
source§fn eq(&self, other: &BlueprintActivationCommand) -> bool
fn eq(&self, other: &BlueprintActivationCommand) -> bool
self
and other
values to be equal, and is used
by ==
.impl Eq for BlueprintActivationCommand
impl StructuralPartialEq for BlueprintActivationCommand
Auto Trait Implementations§
impl Freeze for BlueprintActivationCommand
impl RefUnwindSafe for BlueprintActivationCommand
impl Send for BlueprintActivationCommand
impl Sync for BlueprintActivationCommand
impl Unpin for BlueprintActivationCommand
impl UnwindSafe for BlueprintActivationCommand
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
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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