pub struct TypeDescriptor {
pub simple_type: Option<SimpleType>,
pub dependency_type: Option<DependencyType>,
}Expand description
Describes the selection type of a plugin. Supports both simple
<type name="..."/> and conditional <dependencyType> forms.
Fields§
§simple_type: Option<SimpleType>§dependency_type: Option<DependencyType>Implementations§
Source§impl TypeDescriptor
impl TypeDescriptor
Sourcepub fn resolved_type(&self) -> PluginType
pub fn resolved_type(&self) -> PluginType
Static type resolution (no condition evaluation).
Sourcepub fn resolved_type_in_context(&self, ctx: &EvalContext) -> PluginType
pub fn resolved_type_in_context(&self, ctx: &EvalContext) -> PluginType
Resolve type by evaluating dependencyType patterns against context.
Trait Implementations§
Source§impl Clone for TypeDescriptor
impl Clone for TypeDescriptor
Source§fn clone(&self) -> TypeDescriptor
fn clone(&self) -> TypeDescriptor
Returns a duplicate of the value. Read more
1.0.0 · 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 TypeDescriptor
impl Debug for TypeDescriptor
Source§impl<'de> Deserialize<'de> for TypeDescriptor
impl<'de> Deserialize<'de> for TypeDescriptor
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
Auto Trait Implementations§
impl Freeze for TypeDescriptor
impl RefUnwindSafe for TypeDescriptor
impl Send for TypeDescriptor
impl Sync for TypeDescriptor
impl Unpin for TypeDescriptor
impl UnsafeUnpin for TypeDescriptor
impl UnwindSafe for TypeDescriptor
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