pub struct DocumentModel {
pub uri: String,
pub root_type: String,
pub class_rust_path: Option<String>,
pub build_path: Option<String>,
pub populate_path: Option<String>,
pub public: bool,
}Expand description
A compiled document of a crate (DocumentModel).
Fields§
§uri: StringThe URI the document is loaded by (ferres://<assembly>/<path>).
root_type: StringThe full name (Namespace.Name) of the type of the root of the document.
class_rust_path: Option<String>The public Rust path of the x:Class type of the document.
build_path: Option<String>The absolute Rust path of the build function of a document without a class:
fn(Option<Rc<dyn IServiceProvider>>) -> Result<Ref<T>, XamlLoadException>.
populate_path: Option<String>The absolute Rust path of the populate function of the document.
public: boolWhether the document is public (x:ClassModifier): only a public document can be
included from another crate.
Trait Implementations§
Source§impl Clone for DocumentModel
impl Clone for DocumentModel
Source§fn clone(&self) -> DocumentModel
fn clone(&self) -> DocumentModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DocumentModel
impl Debug for DocumentModel
impl Eq for DocumentModel
Source§impl PartialEq for DocumentModel
impl PartialEq for DocumentModel
impl StructuralPartialEq for DocumentModel
Auto Trait Implementations§
impl Freeze for DocumentModel
impl RefUnwindSafe for DocumentModel
impl Send for DocumentModel
impl Sync for DocumentModel
impl Unpin for DocumentModel
impl UnsafeUnpin for DocumentModel
impl UnwindSafe for DocumentModel
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more