pub enum CreatedBy {
Attribute {
name: String,
},
Framework,
}Expand description
The method used to create (and set the properties) for this component.
Variants§
Attribute
The component was created via a macro annotation (e.g. #[pavex::wrap])
on top of the target item (e.g. a function or a method).
Framework
The component was provided by the framework.
For example, the default fallback handler if the user didn’t specify one.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CreatedBy
impl<'de> Deserialize<'de> for CreatedBy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CreatedBy
impl StructuralPartialEq for CreatedBy
Auto Trait Implementations§
impl Freeze for CreatedBy
impl RefUnwindSafe for CreatedBy
impl Send for CreatedBy
impl Sync for CreatedBy
impl Unpin for CreatedBy
impl UnwindSafe for CreatedBy
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