pub struct Request {
pub format: String,
pub project_name: String,
pub language: String,
pub top_level_as_chapters: bool,
pub chapters: Vec<Chapter>,
pub settings: Map<String, Value>,
pub locale: Option<String>,
pub images: Vec<Image>,
pub cover_image_id: Option<i32>,
}Fields§
§format: StringWhich of the manifest’s [[exporters]] formats to render.
project_name: String§language: StringThe project’s BCP 47 tag.
top_level_as_chapters: boolWhether the scene tree’s top-level nodes are chapters; when not, the story is one chapter.
chapters: Vec<Chapter>§settings: Map<String, Value>The plugin’s declared settings, every key present.
locale: Option<String>The UI’s BCP 47 tag, for replying in the user’s language; not Request::language, the story’s.
images: Vec<Image>For a format whose manifest entry sets images = true, each project image the story refers to
whose file Hammer could read, sorted by id, and the cover with cover = true; empty otherwise.
cover_image_id: Option<i32>The cover’s id among Request::images, with cover = true; none when the project has no cover
or its file could not be read.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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 Forget for Request
impl Freeze for Request
impl Move for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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