pub struct TreeViewStateDTO {
pub ViewIdentifier: String,
pub Provider: Option<Arc<dyn TreeViewProvider + Send + Sync>>,
pub SideCarIdentifier: Option<String>,
pub CanSelectMany: bool,
pub HasHandleDrag: bool,
pub HasHandleDrop: bool,
pub Message: Option<String>,
pub Title: Option<String>,
pub Description: Option<String>,
}Expand description
Holds the static options and provider for a tree view instance that has been
registered by an extension or natively. This is stored in ApplicationState
to track active tree views.
This struct holds references to either a native (Rust) provider or metadata for a proxied (extension) provider.
NOTE: This struct does not derive Serialize/Deserialize because Arc<dyn ...> is not serializable. It is intended for in-memory state management
only.
Fields§
§ViewIdentifier: StringThe unique identifier for this tree view.
Provider: Option<Arc<dyn TreeViewProvider + Send + Sync>>A reference to the native provider, if one exists for this view.
This will be None for extension-provided (proxied) tree views.
SideCarIdentifier: Option<String>The identifier of the sidecar process that hosts the provider logic.
This will be Some for extension-provided (proxied) tree views.
CanSelectMany: boolWhether the tree view supports selecting multiple items.
HasHandleDrag: boolWhether the tree view supports drag and drop for its items.
HasHandleDrop: boolWhether the tree view supports dropping items onto it.
Message: Option<String>An optional message to display in the tree view’s UI.
Title: Option<String>The title of the tree view.
Description: Option<String>An optional description that appears with the title.
Trait Implementations§
Source§impl Clone for TreeViewStateDTO
impl Clone for TreeViewStateDTO
Source§fn clone(&self) -> TreeViewStateDTO
fn clone(&self) -> TreeViewStateDTO
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for TreeViewStateDTO
impl !RefUnwindSafe for TreeViewStateDTO
impl Send for TreeViewStateDTO
impl Sync for TreeViewStateDTO
impl Unpin for TreeViewStateDTO
impl !UnwindSafe for TreeViewStateDTO
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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<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>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].