pub struct ListTab {
pub request_form: String,
pub state: Fetch<Vec<ListRow>>,
pub selected: usize,
pub scroll: usize,
/* private fields */
}Fields§
§request_form: String§state: Fetch<Vec<ListRow>>§selected: usize§scroll: usizeImplementations§
Source§impl ListTab
impl ListTab
pub fn new( request_form: impl Into<String>, schema: &'static EntitySchema, ) -> Self
Sourcepub fn set_loading_id(&mut self, id: i64)
pub fn set_loading_id(&mut self, id: i64)
Update loading id after the eval assigned a real envelope id.
Sourcepub fn on_reply(&mut self, wire: &str)
pub fn on_reply(&mut self, wire: &str)
Process a routed reply wire frame and update fetch state.
Sourcepub fn selected_id(&self) -> Option<&str>
pub fn selected_id(&self) -> Option<&str>
Return the entity id of the focused row, or None when not loaded or no id.
pub fn select_next(&mut self)
pub fn select_prev(&mut self)
Auto Trait Implementations§
impl Freeze for ListTab
impl RefUnwindSafe for ListTab
impl Send for ListTab
impl Sync for ListTab
impl Unpin for ListTab
impl UnsafeUnpin for ListTab
impl UnwindSafe for ListTab
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<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>
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