pub struct ExecuteScreen {
pub endpoint: ApiEndpoint,
pub path_params: Vec<(String, String)>,
pub path_param_input_idx: usize,
pub query_params: Vec<(String, String)>,
pub body_text: String,
pub focused_field: FocusedField,
pub param_input_idx: usize,
}Expand description
Screen for editing path/query/body parameters and executing a single endpoint.
Fields§
§endpoint: ApiEndpoint§path_params: Vec<(String, String)>§path_param_input_idx: usize§query_params: Vec<(String, String)>§body_text: String§focused_field: FocusedField§param_input_idx: usizeImplementations§
Source§impl ExecuteScreen
impl ExecuteScreen
pub fn new(endpoint: ApiEndpoint) -> Self
pub fn get_path_params(&self) -> Vec<(String, String)>
pub fn get_query_params(&self) -> Vec<(String, String)>
pub fn next_field(&mut self)
pub fn previous_field(&mut self)
pub fn add_char_to_focused(&mut self, c: char)
pub fn delete_char_from_focused(&mut self)
pub fn cursor_position(&self, area: Rect) -> Option<(u16, u16)>
pub fn render(&self, f: &mut Frame<'_>, area: Rect)
Auto Trait Implementations§
impl Freeze for ExecuteScreen
impl RefUnwindSafe for ExecuteScreen
impl Send for ExecuteScreen
impl Sync for ExecuteScreen
impl Unpin for ExecuteScreen
impl UnsafeUnpin for ExecuteScreen
impl UnwindSafe for ExecuteScreen
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> 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