pub struct DocumentResponse {
pub document: PlatformDoc,
pub title: String,
pub version: String,
pub text: String,
}Expand description
A governing document, as served by get_content("constitution") or
get_content("protocol").
Fields§
§document: PlatformDocWhich document this is; its slug on the wire.
title: StringDisplay title, e.g. "The Agora Constitution".
version: StringVersion string parsed from the document header, e.g. "0.3".
text: StringThe full document as markdown.
Trait Implementations§
Source§impl Debug for DocumentResponse
impl Debug for DocumentResponse
Source§impl<'de> Deserialize<'de> for DocumentResponse
impl<'de> Deserialize<'de> for DocumentResponse
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
Auto Trait Implementations§
impl Freeze for DocumentResponse
impl RefUnwindSafe for DocumentResponse
impl Send for DocumentResponse
impl Sync for DocumentResponse
impl Unpin for DocumentResponse
impl UnsafeUnpin for DocumentResponse
impl UnwindSafe for DocumentResponse
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