pub struct marker;Available on not (
target_family=wasm and target_os=unknown).Expand description
Marker struct for server function get_fields (use with .server_fn()).
Parity: P1.
The marker is emitted on both native and WASM so shared route declarations can name it. Native builds register the server handler; WASM builds keep the marker metadata inert.
Trait Implementations§
Source§impl ServerFnMetadata for marker
impl ServerFnMetadata for marker
Source§const PATH: &'static str = "/api/server_fn/get_fields"
const PATH: &'static str = "/api/server_fn/get_fields"
The HTTP path for this server function. Read more
Source§const NAME: &'static str = "get_fields"
const NAME: &'static str = "get_fields"
The name of the server function (used for debugging and logging).
Source§const INJECTED_PARAMS: &'static [&'static str]
const INJECTED_PARAMS: &'static [&'static str]
Names of
#[inject] parameters (for documentation / debugging).Source§const USES_RESPONSE_COOKIE_JAR: bool = true
const USES_RESPONSE_COOKIE_JAR: bool = true
Whether the generated handler can access request extensions and set response cookies. Read more
Source§impl ServerFnRegistration for marker
impl ServerFnRegistration for marker
Source§fn handler() -> ServerFnHandler
fn handler() -> ServerFnHandler
Returns the handler function pointer. Read more
Auto Trait Implementations§
impl Freeze for marker
impl RefUnwindSafe for marker
impl Send for marker
impl Sync for marker
impl Unpin for marker
impl UnsafeUnpin for marker
impl UnwindSafe for marker
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more