pub struct DynamicPlaylistViewProps {
pub id: RecordId,
pub dynamic_playlist: DynamicPlaylist,
pub songs: Vec<SongBrief>,
}Fields§
§id: RecordId§dynamic_playlist: DynamicPlaylist§songs: Vec<SongBrief>Trait Implementations§
Source§impl Clone for DynamicPlaylistViewProps
impl Clone for DynamicPlaylistViewProps
Source§fn clone(&self) -> DynamicPlaylistViewProps
fn clone(&self) -> DynamicPlaylistViewProps
Returns a duplicate of the value. Read more
1.0.0 · 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 DynamicPlaylistViewProps
impl Debug for DynamicPlaylistViewProps
Source§impl ItemViewProps for DynamicPlaylistViewProps
impl ItemViewProps for DynamicPlaylistViewProps
Source§fn retrieve(view_data: &ViewData) -> Option<Self>
fn retrieve(view_data: &ViewData) -> Option<Self>
Retrieve this view’s props from the view data
fn name() -> &'static strwhere
Self: Sized,
Source§fn none_checked_string() -> &'static strwhere
Self: Sized,
fn none_checked_string() -> &'static strwhere
Self: Sized,
The string for when no items are checked
fn info_widget(&self) -> impl Widget
Source§fn tree_items(&self) -> Result<Vec<CheckTreeItem<'_, String>>, Error>
fn tree_items(&self) -> Result<Vec<CheckTreeItem<'_, String>>, Error>
Create the tree items for the view Read more
Optionally define an additional footer to give instructions for the extra key events
Source§fn handle_extra_key_events(
&mut self,
key: KeyEvent,
action_tx: UnboundedSender<Action>,
_: &mut CheckTreeState<String>,
)
fn handle_extra_key_events( &mut self, key: KeyEvent, action_tx: UnboundedSender<Action>, _: &mut CheckTreeState<String>, )
Handle any extra key events specific to this view
Source§fn scrollbar() -> Option<Scrollbar<'static>>where
Self: Sized,
fn scrollbar() -> Option<Scrollbar<'static>>where
Self: Sized,
Optionally use a scrollbar when rendering the tree
fn split_area(area: Rect) -> [Rect; 2]
Source§impl PartialEq for DynamicPlaylistViewProps
impl PartialEq for DynamicPlaylistViewProps
Source§impl SortableViewProps<SongBrief> for DynamicPlaylistViewProps
impl SortableViewProps<SongBrief> for DynamicPlaylistViewProps
Source§fn sort_items(&mut self, sort_mode: &impl SortMode<SongBrief>)
fn sort_items(&mut self, sort_mode: &impl SortMode<SongBrief>)
This exists essentially because the generic
SortableItemView doesn’t actually know what its items are, per seimpl Eq for DynamicPlaylistViewProps
impl StructuralPartialEq for DynamicPlaylistViewProps
Auto Trait Implementations§
impl Freeze for DynamicPlaylistViewProps
impl RefUnwindSafe for DynamicPlaylistViewProps
impl Send for DynamicPlaylistViewProps
impl Sync for DynamicPlaylistViewProps
impl Unpin for DynamicPlaylistViewProps
impl UnwindSafe for DynamicPlaylistViewProps
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request