pub struct Screens { /* private fields */ }Expand description
Keyed <module>/<area>/<name>.
Implementations§
Source§impl Screens
impl Screens
Sourcepub fn clients(&mut self, bundles: Vec<ClientBundle>) -> &mut Self
pub fn clients(&mut self, bundles: Vec<ClientBundle>) -> &mut Self
The bundles the app’s build script compiled, one per client area.
Source§impl Screens
impl Screens
Sourcepub fn translate(&mut self, translations: Translations)
pub fn translate(&mut self, translations: Translations)
sofie check refuses a screen using a key the source language lacks, as the app is built.
Source§impl Screens
impl Screens
Sourcepub fn add_builtin(&mut self, files: &[(&str, File)]) -> Result<()>
pub fn add_builtin(&mut self, files: &[(&str, File)]) -> Result<()>
Skips keys the app already gave a template: that is how an app overrides a built-in screen.
pub fn add_source(&mut self, key: &str, source: &str) -> Result<()>
Sourcepub fn describe_form<I: FormFields>(
&mut self,
key: &str,
form: &str,
) -> Result<()>
pub fn describe_form<I: FormFields>( &mut self, key: &str, form: &str, ) -> Result<()>
A development build gives them again whenever it rereads the file.
pub fn describe_forms(&mut self, forms: &[Form]) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Screens
impl RefUnwindSafe for Screens
impl Send for Screens
impl Sync for Screens
impl Unpin for Screens
impl UnsafeUnpin for Screens
impl UnwindSafe for Screens
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