pub struct WireField {
pub name: &'static str,
pub locked: bool,
pub modelable: bool,
pub reactive: bool,
pub url: Option<UrlBinding>,
pub session: Option<SessionBinding>,
pub synth: Option<&'static str>,
pub rules: &'static [&'static str],
pub type_name: &'static str,
}Expand description
One wire-public field’s rules, generated by the derive in declaration order.
Fields§
§name: &'static strThe field’s name on the wire.
locked: boolWhether the browser may change the field at all.
modelable: boolWhether a parent component may bind the field with wire:model.
reactive: boolWhether the field resets the component when its parent changes it.
url: Option<UrlBinding>The query string binding of a #[livewire(url)] field.
session: Option<SessionBinding>The session binding of a #[livewire(session)] field.
synth: Option<&'static str>The synthesizer that reads and writes the field, when it needs one.
rules: &'static [&'static str]The validation rules the field declares, in the framework’s rule syntax.
type_name: &'static strThe Rust type the field declares, for diagnostics and the testing helpers.
Trait Implementations§
impl Copy for WireField
impl Eq for WireField
impl StructuralPartialEq for WireField
Auto Trait Implementations§
impl Forget for WireField
impl Freeze for WireField
impl Move for WireField
impl RefUnwindSafe for WireField
impl Send for WireField
impl Sync for WireField
impl Unpin for WireField
impl UnsafeUnpin for WireField
impl UnwindSafe for WireField
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.