pub struct WikiPage {
pub title: String,
pub parent: Option<WikiPageParent>,
pub author: Option<UserEssentials>,
pub text: String,
pub version: u64,
pub comments: String,
pub created_on: OffsetDateTime,
pub updated_on: OffsetDateTime,
pub attachments: Option<Vec<Attachment>>,
}Expand description
a type for wiki pages to use as an API return type
alternatively you can use your own type limited to the fields you need
Fields§
§title: Stringtitle
parent: Option<WikiPageParent>the parent of this page
author
text: Stringthe text body of the wiki page
version: u64the version number of the wiki page
comments: Stringthe comments supplied when saving this version of the page
created_on: OffsetDateTimeThe time when this wiki page was created
updated_on: OffsetDateTimeThe time when this wiki page was last updated
attachments: Option<Vec<Attachment>>wiki page attachments (only when include parameter is used)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WikiPage
impl<'de> Deserialize<'de> for WikiPage
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
impl Eq for WikiPage
impl StructuralPartialEq for WikiPage
Auto Trait Implementations§
impl Freeze for WikiPage
impl RefUnwindSafe for WikiPage
impl Send for WikiPage
impl Sync for WikiPage
impl Unpin for WikiPage
impl UnwindSafe for WikiPage
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