pub struct TreeCreateCancel<T> {
pub id: T,
pub request: TreeCreateRequest<T>,
}Expand description
Cancellation of an in-progress create editor.
§Examples
use ailloli_ui_widgets::controls::{TreeCreateCancel, TreeCreateKind, TreeCreateRequest};
let request = TreeCreateRequest { parent: None, after: None, kind: TreeCreateKind::SiblingAfter, default_label: "New item".into() };
let event = TreeCreateCancel { id: 9, request };
assert_eq!(event.id, 9);Fields§
§id: TFactory-provided draft ID.
request: TreeCreateRequest<T>Original creation request.
Trait Implementations§
Source§impl<T: Clone> Clone for TreeCreateCancel<T>
impl<T: Clone> Clone for TreeCreateCancel<T>
Source§fn clone(&self) -> TreeCreateCancel<T>
fn clone(&self) -> TreeCreateCancel<T>
Returns a copy 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<T: Debug> Debug for TreeCreateCancel<T>
impl<T: Debug> Debug for TreeCreateCancel<T>
Source§impl<T: PartialEq> PartialEq for TreeCreateCancel<T>
impl<T: PartialEq> PartialEq for TreeCreateCancel<T>
impl<T: Eq> Eq for TreeCreateCancel<T>
impl<T> StructuralPartialEq for TreeCreateCancel<T>
Auto Trait Implementations§
impl<T> Freeze for TreeCreateCancel<T>where
T: Freeze,
impl<T> RefUnwindSafe for TreeCreateCancel<T>where
T: RefUnwindSafe,
impl<T> Send for TreeCreateCancel<T>where
T: Send,
impl<T> Sync for TreeCreateCancel<T>where
T: Sync,
impl<T> Unpin for TreeCreateCancel<T>where
T: Unpin,
impl<T> UnwindSafe for TreeCreateCancel<T>where
T: UnwindSafe,
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§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>
§impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
impl<A> IntoClickAction<A> for Awhere
A: Clone + 'static,
§fn into_click_action(self) -> ClickAction<A>
fn into_click_action(self) -> ClickAction<A>
Implements the into_click_action helper used by this module.