Skip to main content

AppModel

Struct AppModel 

Source
pub struct AppModel {
Show 28 fields pub endpoint_url: String, pub endpoint_history: Vec<String>, pub connection: ConnectionState, pub root_node: NodeId, pub tree: TreeModel, pub selected: Option<NodeId>, pub node_summary: Option<NodeSummary>, pub active_tab: DetailTab, pub references: Option<Vec<ReferenceRow>>, pub references_loading: bool, pub log: VecDeque<LogLine>, pub selected_endpoint: Option<EndpointInfo>, pub endpoints_loading: bool, pub discovered_endpoints: Option<Vec<EndpointInfo>>, pub endpoints_dialog_open: bool, pub auth_mode: AuthMode, pub auth_username: String, pub auth_password: String, pub auth_cert_path: String, pub auth_key_path: String, pub last_selection_paths: HashMap<String, Vec<NodeId>>, pub last_connection_selections: HashMap<String, ConnectionPrefs>, pub endpoint_mode_filter: SecurityMode, pub file_picker_open: bool, pub method_call: Option<MethodCallState>, pub subscriptions: Vec<SubscriptionRow>, pub subscribing: HashSet<NodeId>, pub attr_edit: Option<AttributeEditState>,
}

Fields§

§endpoint_url: String§endpoint_history: Vec<String>§connection: ConnectionState§root_node: NodeId§tree: TreeModel§selected: Option<NodeId>§node_summary: Option<NodeSummary>§active_tab: DetailTab§references: Option<Vec<ReferenceRow>>§references_loading: bool§log: VecDeque<LogLine>§selected_endpoint: Option<EndpointInfo>§endpoints_loading: bool§discovered_endpoints: Option<Vec<EndpointInfo>>§endpoints_dialog_open: bool§auth_mode: AuthMode§auth_username: String§auth_password: String§auth_cert_path: String§auth_key_path: String§last_selection_paths: HashMap<String, Vec<NodeId>>§last_connection_selections: HashMap<String, ConnectionPrefs>§endpoint_mode_filter: SecurityMode§file_picker_open: bool§method_call: Option<MethodCallState>§subscriptions: Vec<SubscriptionRow>§subscribing: HashSet<NodeId>§attr_edit: Option<AttributeEditState>

Implementations§

Trait Implementations§

Source§

impl Default for AppModel

Source§

fn default() -> Self

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.

Source§

impl<T> Instrument for T

Source§

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

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

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

Source§

type Output = T

Should always be Self
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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> With for T

Source§

fn wrap_with<U, F>(self, f: F) -> U
where F: FnOnce(Self) -> U,

Calls the given closure and return the result. Read more
Source§

fn with<F>(self, f: F) -> Self
where F: FnOnce(&mut Self),

Calls the given closure on self.
Source§

fn try_with<E, F>(self, f: F) -> Result<Self, E>
where F: FnOnce(&mut Self) -> Result<(), E>,

Calls the given closure on self.
Source§

fn with_if<F>(self, condition: bool, f: F) -> Self
where F: FnOnce(&mut Self),

Calls the given closure if condition == true.
Source§

impl<T> WithSubscriber for T

Source§

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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