pub struct DocumentResponse {
pub document: PlatformDoc,
pub title: String,
pub version: String,
pub text: String,
}Expand description
A platform document, as served by get_content("constitution"),
get_content("protocol"), get_content("prompts") or
get_content("prompt:<name>").
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". A
prompt has no header: its version is sha256: and the first 16 hex
digits of its text’s hash, which changes exactly when the text does.
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