pub struct MixedClientServerBarrel {
pub path: PathBuf,
pub client_origin: String,
pub server_origin: String,
pub line: u32,
pub col: u32,
}Expand description
A barrel file that re-exports BOTH a "use client" origin module AND a
server-only origin module. Importing one name from such a barrel drags the
other’s directive context across the React Server Components boundary (the
Next.js App Router footgun); fallow catches it statically.
Fields§
§path: PathBufThe barrel file re-exporting both a client and a server-only origin.
client_origin: StringThe "use client" origin’s relative path or specifier as written in the
barrel’s offending re-export.
server_origin: StringThe server-only origin’s relative path or specifier as written in the barrel’s offending re-export.
line: u321-based line number of the barrel’s first offending re-export.
col: u320-based byte column offset of the barrel’s first offending re-export.
Trait Implementations§
Source§impl Clone for MixedClientServerBarrel
impl Clone for MixedClientServerBarrel
Source§impl Debug for MixedClientServerBarrel
impl Debug for MixedClientServerBarrel
Source§impl<'de> Deserialize<'de> for MixedClientServerBarrel
impl<'de> Deserialize<'de> for MixedClientServerBarrel
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 MixedClientServerBarrel
impl RefUnwindSafe for MixedClientServerBarrel
impl Send for MixedClientServerBarrel
impl Sync for MixedClientServerBarrel
impl Unpin for MixedClientServerBarrel
impl UnsafeUnpin for MixedClientServerBarrel
impl UnwindSafe for MixedClientServerBarrel
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