pub struct Route {
pub name: Option<String>,
pub page_source_file: Option<String>,
pub build_function: Option<String>,
pub ohmurl: Option<String>,
pub package_name: Option<String>,
pub module_name: Option<String>,
pub bundle_name: Option<String>,
}Expand description
One route: a name the navigation stack is pushed with, and the builder function that makes its page.
Fields§
§name: Option<String>§page_source_file: Option<String>The source file of the page, relative to the root of the package
that has it: src/main/ets/pages/Detail.ets.
build_function: Option<String>The @Builder function of that file the system calls.
ohmurl: Option<String>The module request of the page’s record, as the build wrote it:
@normalized:N&<module>&<bundle>&<package>/<path>&<version>.
package_name: Option<String>The package that has the page, when it is not the module itself.
module_name: Option<String>§bundle_name: Option<String>Implementations§
Source§impl Route
impl Route
Sourcepub fn ohmurl_record(&self) -> Option<&str>
pub fn ohmurl_record(&self) -> Option<&str>
The record Route::ohmurl names: <bundle>&<package>/<path>&<version>
of a @normalized:N&<module>&<bundle>&<package>/<path>&<version>
request. None for any other form (a native library, a system module).
Sourcepub fn line(&self) -> String
pub fn line(&self) -> String
The summary line of the route:
route NAME buildFunction=F source=FILE, with package=NAME when
the page is in another package than the module.
Sourcepub fn ohmurl_module(&self) -> Option<&str>
pub fn ohmurl_module(&self) -> Option<&str>
The module Route::ohmurl says the record is in; empty for the
module that has the route table.
Sourcepub fn record_path(&self, default_package: Option<&str>) -> Option<String>
pub fn record_path(&self, default_package: Option<&str>) -> Option<String>
Route::page_source_file without its extension, behind the package
that has it (default_package when the route names none):
<package>/src/main/ets/pages/Detail, the part of a normalized
record name between its &.