pub struct ArrayPropertyDefault {
pub property: String,
pub entries: Vec<(String, String)>,
}Expand description
An array-literal property default declared on a class, exposed to
ClassPropertyProviderEvent so a plugin can interpret framework
conventions like Eloquent’s protected $casts = [...] without re-parsing.
Fields§
§property: StringProperty name (no leading $), e.g. casts.
entries: Vec<(String, String)>Ordered (key, value) entries of the array literal. String-literal
values are unquoted; Foo::class values become the resolved class
FQCN. List-style arrays get positional string keys ("0", "1").
Trait Implementations§
Source§impl Clone for ArrayPropertyDefault
impl Clone for ArrayPropertyDefault
Source§fn clone(&self) -> ArrayPropertyDefault
fn clone(&self) -> ArrayPropertyDefault
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ArrayPropertyDefault
impl Debug for ArrayPropertyDefault
impl Eq for ArrayPropertyDefault
Source§impl PartialEq for ArrayPropertyDefault
impl PartialEq for ArrayPropertyDefault
impl StructuralPartialEq for ArrayPropertyDefault
Auto Trait Implementations§
impl Freeze for ArrayPropertyDefault
impl RefUnwindSafe for ArrayPropertyDefault
impl Send for ArrayPropertyDefault
impl Sync for ArrayPropertyDefault
impl Unpin for ArrayPropertyDefault
impl UnsafeUnpin for ArrayPropertyDefault
impl UnwindSafe for ArrayPropertyDefault
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§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.