pub enum PlatformDoc {
Constitution,
GovernanceProtocol,
Prompts,
Prompt(PromptName),
}Expand description
A platform document readable through get_content.
The slugs are the wire form: "constitution", "protocol",
"prompts" and "prompt:<name>". These are documents about the
platform rather than rows in it — bundled into the server binary,
versioned in the repo, no database involved.
Variants§
Constitution
The Agora Constitution.
GovernanceProtocol
The Agora Governance Protocol — the Constitution’s mechanical companion: how the Council and the Appeals Court actually run.
Prompts
The index of the model prompts the platform publishes
Prompt(PromptName)
One published model prompt, by name
Implementations§
Source§impl PlatformDoc
impl PlatformDoc
Trait Implementations§
Source§impl Clone for PlatformDoc
impl Clone for PlatformDoc
Source§impl Debug for PlatformDoc
impl Debug for PlatformDoc
Source§impl<'de> Deserialize<'de> for PlatformDoc
impl<'de> Deserialize<'de> for PlatformDoc
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PlatformDoc
impl Display for PlatformDoc
impl Eq for PlatformDoc
Source§impl From<PlatformDoc> for ContentRef
impl From<PlatformDoc> for ContentRef
Source§fn from(doc: PlatformDoc) -> Self
fn from(doc: PlatformDoc) -> Self
Converts to this type from the input type.
Source§impl From<PromptName> for PlatformDoc
impl From<PromptName> for PlatformDoc
Source§fn from(name: PromptName) -> Self
fn from(name: PromptName) -> Self
Converts to this type from the input type.
Source§impl FromStr for PlatformDoc
impl FromStr for PlatformDoc
Source§impl Hash for PlatformDoc
impl Hash for PlatformDoc
Source§impl PartialEq for PlatformDoc
impl PartialEq for PlatformDoc
Source§impl Serialize for PlatformDoc
impl Serialize for PlatformDoc
impl StructuralPartialEq for PlatformDoc
Auto Trait Implementations§
impl Freeze for PlatformDoc
impl RefUnwindSafe for PlatformDoc
impl Send for PlatformDoc
impl Sync for PlatformDoc
impl Unpin for PlatformDoc
impl UnsafeUnpin for PlatformDoc
impl UnwindSafe for PlatformDoc
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