pub struct CommentContext {
pub active_reply: Signal<Option<i64>>,
pub refresh_trigger: Signal<bool>,
pub pending_comments: Signal<Vec<PendingComment>>,
}Expand description
评论上下文,供评论相关组件共享状态。
字段:
active_reply:当前正在回复的评论 IDrefresh_trigger:刷新触发信号,切换时触发评论列表重新加载pending_comments:本地存储的待审核评论
Fields§
§active_reply: Signal<Option<i64>>当前正在回复的评论 ID。
refresh_trigger: Signal<bool>刷新触发信号,切换时触发评论列表重新加载。
pending_comments: Signal<Vec<PendingComment>>本地存储的待审核评论。
Trait Implementations§
Source§impl Clone for CommentContext
impl Clone for CommentContext
Source§fn clone(&self) -> CommentContext
fn clone(&self) -> CommentContext
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 moreimpl Copy for CommentContext
Auto Trait Implementations§
impl Freeze for CommentContext
impl !RefUnwindSafe for CommentContext
impl !Send for CommentContext
impl !Sync for CommentContext
impl Unpin for CommentContext
impl UnsafeUnpin for CommentContext
impl !UnwindSafe for CommentContext
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<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
§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<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.