pub struct AppState {Show 21 fields
pub client: Option<WsClient>,
pub current_block: AppBlock,
pub focused_settings_field: Option<SettingsField>,
pub focused_endpoint_field: Option<EndpointField>,
pub connected: bool,
pub endpoint_connected: bool,
pub url: String,
pub username: String,
pub password: String,
pub method_id: Option<u32>,
pub service_name: Option<String>,
pub params: Vec<ParameterMetadata>,
pub param_values: Vec<String>,
pub param_defaults: HashMap<String, HashMap<String, String>>,
pub json_view_mode: JsonViewMode,
pub json_data: Option<String>,
pub endpoints: Vec<String>,
pub selected_endpoint: usize,
pub endpoint_data: HashMap<String, EndpointMetadata>,
pub response_scroll: (u16, u16),
pub is_stream: bool,
}Fields§
§client: Option<WsClient>§current_block: AppBlock§focused_settings_field: Option<SettingsField>§focused_endpoint_field: Option<EndpointField>§connected: bool§endpoint_connected: bool§url: String§username: String§password: String§method_id: Option<u32>§service_name: Option<String>§params: Vec<ParameterMetadata>§param_values: Vec<String>§param_defaults: HashMap<String, HashMap<String, String>>§json_view_mode: JsonViewMode§json_data: Option<String>§endpoints: Vec<String>§selected_endpoint: usize§endpoint_data: HashMap<String, EndpointMetadata>§response_scroll: (u16, u16)§is_stream: boolImplementations§
Source§impl AppState
impl AppState
pub fn new( endpoint_names: Vec<String>, endpoint_data: HashMap<String, EndpointMetadata>, param_defaults: HashMap<String, HashMap<String, String>>, ) -> Self
pub fn scroll_response_down(&mut self)
pub fn scroll_response_up(&mut self)
pub fn scroll_response_right(&mut self)
pub fn scroll_response_left(&mut self)
pub fn update_input(&mut self, c: char)
pub fn delete_last_char(&mut self)
pub fn next_field(&mut self)
pub fn previous_field(&mut self)
pub fn switch_block(&mut self)
pub fn select_next_endpoint(&mut self)
pub fn select_previous_endpoint(&mut self)
pub fn toggle_json_view_mode(&mut self)
pub async fn handle_enter(&mut self) -> Result<()>
pub async fn handle_connect(&mut self) -> Result<()>
pub async fn handle_disconnect(&mut self) -> Result<()>
pub async fn handle_endpoint_connect(&mut self) -> Result<()>
pub async fn handle_endpoint_disconnect(&mut self) -> Result<()>
Auto Trait Implementations§
impl !Freeze for AppState
impl !RefUnwindSafe for AppState
impl !UnwindSafe for AppState
impl Send for AppState
impl Sync for AppState
impl Unpin for AppState
impl UnsafeUnpin for AppState
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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