pub struct AdminComment {Show 13 fields
pub id: i64,
pub post_id: i32,
pub post_title: String,
pub post_slug: String,
pub parent_id: Option<i64>,
pub depth: i32,
pub author_name: String,
pub author_email: String,
pub author_url: Option<String>,
pub avatar_url: String,
pub content_md: String,
pub status: CommentStatus,
pub created_at: DateTime<Utc>,
}Expand description
面向后台管理的评论结构体,包含审核所需字段。
Fields§
§id: i64评论主键。
post_id: i32所属文章主键。
post_title: String所属文章标题。
post_slug: String所属文章 slug。
parent_id: Option<i64>父评论主键。
depth: i32嵌套深度。
评论者名称。
评论者邮箱。
评论者个人主页 URL。
avatar_url: String评论者头像 URL。
content_md: String原始 Markdown 内容。
status: CommentStatus当前审核状态。
created_at: DateTime<Utc>评论创建时间。
Trait Implementations§
Source§impl Clone for AdminComment
impl Clone for AdminComment
Source§fn clone(&self) -> AdminComment
fn clone(&self) -> AdminComment
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 AdminComment
impl Debug for AdminComment
Source§impl<'de> Deserialize<'de> for AdminComment
impl<'de> Deserialize<'de> for AdminComment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AdminComment
impl PartialEq for AdminComment
Source§impl Serialize for AdminComment
impl Serialize for AdminComment
impl StructuralPartialEq for AdminComment
Auto Trait Implementations§
impl Freeze for AdminComment
impl RefUnwindSafe for AdminComment
impl Send for AdminComment
impl Sync for AdminComment
impl Unpin for AdminComment
impl UnsafeUnpin for AdminComment
impl UnwindSafe for AdminComment
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.
§impl<T> Transportable for Twhere
T: Serialize + DeserializeOwned + 'static,
impl<T> Transportable for Twhere
T: Serialize + DeserializeOwned + 'static,
§fn transport_to_bytes(&self) -> Vec<u8> ⓘ
fn transport_to_bytes(&self) -> Vec<u8> ⓘ
Serialize the type to a byte vector for transport
§fn transport_from_bytes(bytes: &[u8]) -> Result<T, Error<Error>>
fn transport_from_bytes(bytes: &[u8]) -> Result<T, Error<Error>>
Deserialize the type from a byte slice