pub struct ComponentPropDeclaration {
pub component: String,
pub component_span: u32,
pub name: String,
pub local: String,
pub aliases: Vec<String>,
pub span_start: u32,
pub optional: bool,
pub has_default: bool,
pub is_used: bool,
pub framework: ComponentFramework,
pub incomplete: bool,
}Expand description
A declared public input, kept distinct from legacy unused-prop facts.
Fields§
§component: StringComponent declaration name. Empty denotes the sole SFC default export.
component_span: u32Stable declaration binding byte anchor.
name: StringPublic input name.
local: StringLocal binding name used by destructured template reads.
aliases: Vec<String>Additional public attribute names supplying the same input.
span_start: u32Declaration byte anchor in the original source.
optional: boolWhether the declaration explicitly permits omission.
has_default: boolWhether omission has a syntactically declared default value.
is_used: boolWhether the input is consumed within the component.
framework: ComponentFrameworkProducer framework.
incomplete: boolUnsupported declarations, forwarding, or open consumers prohibit absence claims.
Trait Implementations§
Source§impl Clone for ComponentPropDeclaration
impl Clone for ComponentPropDeclaration
Source§impl Debug for ComponentPropDeclaration
impl Debug for ComponentPropDeclaration
impl<'__de> Decode<'__de> for ComponentPropDeclarationwhere
'__de:,
impl Encode for ComponentPropDeclaration
impl Eq for ComponentPropDeclaration
Source§impl PartialEq for ComponentPropDeclaration
impl PartialEq for ComponentPropDeclaration
impl StructuralPartialEq for ComponentPropDeclaration
Auto Trait Implementations§
impl Freeze for ComponentPropDeclaration
impl RefUnwindSafe for ComponentPropDeclaration
impl Send for ComponentPropDeclaration
impl Sync for ComponentPropDeclaration
impl Unpin for ComponentPropDeclaration
impl UnsafeUnpin for ComponentPropDeclaration
impl UnwindSafe for ComponentPropDeclaration
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DecodeOwned for Twhere
T: for<'de> Decode<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.