pub struct ParagraphCode {
pub content: String,
pub lang: String,
}Fields§
§content: String内容
lang: String语言,如 “language-html”
Trait Implementations§
Source§impl Clone for ParagraphCode
impl Clone for ParagraphCode
Source§fn clone(&self) -> ParagraphCode
fn clone(&self) -> ParagraphCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ParagraphCode
impl Debug for ParagraphCode
Source§impl Default for ParagraphCode
impl Default for ParagraphCode
Source§fn default() -> ParagraphCode
fn default() -> ParagraphCode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ParagraphCode
impl<'de> Deserialize<'de> for ParagraphCode
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 ParagraphCode
impl PartialEq for ParagraphCode
Source§fn eq(&self, other: &ParagraphCode) -> bool
fn eq(&self, other: &ParagraphCode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ParagraphCode
impl Serialize for ParagraphCode
impl StructuralPartialEq for ParagraphCode
Auto Trait Implementations§
impl Freeze for ParagraphCode
impl RefUnwindSafe for ParagraphCode
impl Send for ParagraphCode
impl Sync for ParagraphCode
impl Unpin for ParagraphCode
impl UnsafeUnpin for ParagraphCode
impl UnwindSafe for ParagraphCode
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