pub enum Reference {
Template(String),
Module(String),
Resource {
key: String,
bundle: String,
},
Route {
controller: Option<String>,
name: String,
},
}Variants§
Template(String)
<isinclude template="account/dashboard"/>
Module(String)
require('*/cartridge/scripts/helpers/brandHelper')
Resource
Resource.msg('label.profile.firstname', 'account', null)
Route
server.append('Show', ...) or a full endpoint like URLUtils.url('Account-Show');
only the latter names the controller, otherwise it is the file being edited.
Trait Implementations§
impl Eq for Reference
impl StructuralPartialEq for Reference
Auto Trait Implementations§
impl Freeze for Reference
impl RefUnwindSafe for Reference
impl Send for Reference
impl Sync for Reference
impl Unpin for Reference
impl UnsafeUnpin for Reference
impl UnwindSafe for Reference
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