pub struct MisplacedDirectiveSite {
pub is_server: bool,
pub span_start: u32,
}Expand description
A "use client" / "use server" directive string written as an expression
statement in program.body (NOT the leading prologue), so the RSC bundler
silently ignores it. One entry per offending occurrence. Consumed by the
misplaced-directive detector.
Fields§
§is_server: booltrue for "use server", false for "use client".
span_start: u32Start byte offset of the misplaced directive statement.
Trait Implementations§
Source§impl Clone for MisplacedDirectiveSite
impl Clone for MisplacedDirectiveSite
Source§impl Debug for MisplacedDirectiveSite
impl Debug for MisplacedDirectiveSite
impl<'__de> Decode<'__de> for MisplacedDirectiveSitewhere
'__de:,
impl Encode for MisplacedDirectiveSite
impl Eq for MisplacedDirectiveSite
Source§impl PartialEq for MisplacedDirectiveSite
impl PartialEq for MisplacedDirectiveSite
impl StructuralPartialEq for MisplacedDirectiveSite
Auto Trait Implementations§
impl Freeze for MisplacedDirectiveSite
impl RefUnwindSafe for MisplacedDirectiveSite
impl Send for MisplacedDirectiveSite
impl Sync for MisplacedDirectiveSite
impl Unpin for MisplacedDirectiveSite
impl UnsafeUnpin for MisplacedDirectiveSite
impl UnwindSafe for MisplacedDirectiveSite
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.