pub enum ProjectFeature {
Captcha,
Pay,
Notify,
}Expand description
One optional official Feature selected during px new --feature ....
Variants§
Implementations§
Source§impl ProjectFeature
impl ProjectFeature
pub const ALL: [Self; 3]
Sourcepub const fn key(self) -> &'static str
pub const fn key(self) -> &'static str
Cargo feature name on the phoenixrs facade and config/<key>.toml stem.
Sourcepub const fn summary(self) -> &'static str
pub const fn summary(self) -> &'static str
One-line Chinese description used by the interactive wizard.
Sourcepub const fn has_migrations(self) -> bool
pub const fn has_migrations(self) -> bool
Whether this Feature registers database migrations through its plugin.
Trait Implementations§
Source§impl Clone for ProjectFeature
impl Clone for ProjectFeature
impl Copy for ProjectFeature
Source§impl Debug for ProjectFeature
impl Debug for ProjectFeature
impl Eq for ProjectFeature
Source§impl FromStr for ProjectFeature
impl FromStr for ProjectFeature
Source§impl Ord for ProjectFeature
impl Ord for ProjectFeature
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ProjectFeature
impl PartialEq for ProjectFeature
Source§impl PartialOrd for ProjectFeature
impl PartialOrd for ProjectFeature
impl StructuralPartialEq for ProjectFeature
Auto Trait Implementations§
impl Freeze for ProjectFeature
impl RefUnwindSafe for ProjectFeature
impl Send for ProjectFeature
impl Sync for ProjectFeature
impl Unpin for ProjectFeature
impl UnsafeUnpin for ProjectFeature
impl UnwindSafe for ProjectFeature
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