pub enum RpcExtensionUiRequest {
Select {
id: String,
title: String,
options: Vec<String>,
timeout: Option<u64>,
},
Confirm {
id: String,
title: String,
message: String,
timeout: Option<u64>,
},
Input {
id: String,
title: String,
placeholder: Option<String>,
timeout: Option<u64>,
},
Editor {
id: String,
title: String,
prefill: Option<String>,
},
Notify {
id: String,
message: String,
notify_type: Option<String>,
},
SetStatus {
id: String,
status_key: String,
status_text: Option<String>,
},
SetWidget {
id: String,
widget_key: String,
widget_lines: Option<Vec<String>>,
widget_placement: Option<String>,
},
SetTitle {
id: String,
title: String,
},
SetEditorText {
id: String,
text: String,
},
}Expand description
Extension UI request
Variants§
Select
Present a single-select menu to the user.
Fields
Confirm
Ask the user for a yes/no confirmation.
Fields
Input
Ask the user for a free-form text input.
Fields
Editor
Open a full-screen editor for multi-line text input.
Fields
Notify
Display a non-blocking notification to the user.
Fields
SetStatus
Set a status bar entry.
Fields
SetWidget
Set or update a custom widget in the UI.
Fields
SetTitle
Set the window/terminal title.
SetEditorText
Replace the text in the user’s input editor.
Trait Implementations§
Source§impl Clone for RpcExtensionUiRequest
impl Clone for RpcExtensionUiRequest
Source§fn clone(&self) -> RpcExtensionUiRequest
fn clone(&self) -> RpcExtensionUiRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RpcExtensionUiRequest
impl Debug for RpcExtensionUiRequest
Auto Trait Implementations§
impl Freeze for RpcExtensionUiRequest
impl RefUnwindSafe for RpcExtensionUiRequest
impl Send for RpcExtensionUiRequest
impl Sync for RpcExtensionUiRequest
impl Unpin for RpcExtensionUiRequest
impl UnsafeUnpin for RpcExtensionUiRequest
impl UnwindSafe for RpcExtensionUiRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: Sized + AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: Sized + AsFilelike,
Set the “status” flags for the
self file descriptor. Read moreSource§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