pub struct AddonRoute {
pub addon: String,
pub controller: String,
pub action: String,
pub controller_class: String,
pub controller_file: Option<PathBuf>,
}Expand description
解析后的插件路由信息
对齐 PHP Route::execute($addon, $controller, $action) 的参数三元组。
Fields§
§addon: String插件名(对齐 PHP $addon)
controller: String控制器名(原始形式,可能含点号;对齐 PHP $controller)
action: String操作名(对齐 PHP $action)
controller_class: String控制器类名(解析后,对齐 PHP get_addons_class 返回值)
controller_file: Option<PathBuf>控制器文件路径
Implementations§
Trait Implementations§
Source§impl Clone for AddonRoute
impl Clone for AddonRoute
Source§fn clone(&self) -> AddonRoute
fn clone(&self) -> AddonRoute
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 AddonRoute
impl Debug for AddonRoute
impl Eq for AddonRoute
Source§impl PartialEq for AddonRoute
impl PartialEq for AddonRoute
impl StructuralPartialEq for AddonRoute
Auto Trait Implementations§
impl Freeze for AddonRoute
impl RefUnwindSafe for AddonRoute
impl Send for AddonRoute
impl Sync for AddonRoute
impl Unpin for AddonRoute
impl UnsafeUnpin for AddonRoute
impl UnwindSafe for AddonRoute
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