pub struct PostalCodeServiceServerFn {
pub zip: String,
}
Expand description
Serialized arguments for the [postal_code_service_server_fn
] server function.
Fields§
§zip: String
Trait Implementations§
Source§impl Clone for PostalCodeServiceServerFn
impl Clone for PostalCodeServiceServerFn
Source§fn clone(&self) -> PostalCodeServiceServerFn
fn clone(&self) -> PostalCodeServiceServerFn
Returns a duplicate of the value. Read more
1.0.0 · 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 PostalCodeServiceServerFn
impl Debug for PostalCodeServiceServerFn
Source§impl<'de> Deserialize<'de> for PostalCodeServiceServerFn
impl<'de> Deserialize<'de> for PostalCodeServiceServerFn
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
Source§impl From<PostalCodeServiceServerFn> for String
impl From<PostalCodeServiceServerFn> for String
Source§fn from(value: PostalCodeServiceServerFn) -> Self
fn from(value: PostalCodeServiceServerFn) -> Self
Converts to this type from the input type.
Source§impl From<String> for PostalCodeServiceServerFn
impl From<String> for PostalCodeServiceServerFn
Source§impl ServerFn for PostalCodeServiceServerFn
impl ServerFn for PostalCodeServiceServerFn
Source§const PATH: &'static str
const PATH: &'static str
A unique path for the server function’s API endpoint, relative to the host, including its prefix.
Source§type Client = BrowserClient
type Client = BrowserClient
The type of the HTTP client that will send the request from the client side. Read more
Source§type ServerRequest = BrowserMockReq
type ServerRequest = BrowserMockReq
The type of the HTTP request when received by the server function on the server side.
Source§type ServerResponse = BrowserMockRes
type ServerResponse = BrowserMockRes
The type of the HTTP response returned by the server function on the server side.
Source§type InputEncoding = PostUrl
type InputEncoding = PostUrl
The
Encoding
used in the request for arguments into the server function.Source§type OutputEncoding = Json
type OutputEncoding = Json
The
Encoding
used in the response for the result of the server function.Source§type Error = NoCustomError
type Error = NoCustomError
The type of the custom error on
ServerFnError
, if any. (If there is no
custom error type, this can be NoCustomError
by default.)Source§fn middlewares() -> Vec<Arc<dyn Layer<BrowserMockReq, BrowserMockRes>>>
fn middlewares() -> Vec<Arc<dyn Layer<BrowserMockReq, BrowserMockRes>>>
Middleware that should be applied to this server function.
Source§async fn run_body(self) -> Result<Option<String>, ServerFnError>
async fn run_body(self) -> Result<Option<String>, ServerFnError>
The body of the server function. This will only run on the server.
Source§fn url() -> &'static str
fn url() -> &'static str
Returns
Self::PATH
.Auto Trait Implementations§
impl Freeze for PostalCodeServiceServerFn
impl RefUnwindSafe for PostalCodeServiceServerFn
impl Send for PostalCodeServiceServerFn
impl Sync for PostalCodeServiceServerFn
impl Unpin for PostalCodeServiceServerFn
impl UnwindSafe for PostalCodeServiceServerFn
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,
Source§impl<T> FromFormData for Twhere
T: DeserializeOwned,
impl<T> FromFormData for Twhere
T: DeserializeOwned,
Source§fn from_event(ev: &Event) -> Result<T, FromFormDataError>
fn from_event(ev: &Event) -> Result<T, FromFormDataError>
Tries to deserialize the data, given only the
submit
event.Source§impl<CustErr, T, Request> FromReq<Cbor, Request, CustErr> for T
impl<CustErr, T, Request> FromReq<Cbor, Request, CustErr> for T
Source§async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
Attempts to deserialize the arguments from a request.
Source§impl<CustErr, T, Request> FromReq<GetUrl, Request, CustErr> for T
impl<CustErr, T, Request> FromReq<GetUrl, Request, CustErr> for T
Source§async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
Attempts to deserialize the arguments from a request.
Source§impl<CustErr, T, Request> FromReq<Json, Request, CustErr> for T
impl<CustErr, T, Request> FromReq<Json, Request, CustErr> for T
Source§async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
Attempts to deserialize the arguments from a request.
Source§impl<CustErr, T, Request> FromReq<PostUrl, Request, CustErr> for T
impl<CustErr, T, Request> FromReq<PostUrl, Request, CustErr> for T
Source§async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
async fn from_req(req: Request) -> Result<T, ServerFnError<CustErr>>
Attempts to deserialize the arguments from a request.
Source§impl<CustErr, T, Response> FromRes<Cbor, Response, CustErr> for T
impl<CustErr, T, Response> FromRes<Cbor, Response, CustErr> for T
Source§async fn from_res(res: Response) -> Result<T, ServerFnError<CustErr>>
async fn from_res(res: Response) -> Result<T, ServerFnError<CustErr>>
Attempts to deserialize the outputs from a response.
Source§impl<CustErr, T, Response> FromRes<Json, Response, CustErr> for T
impl<CustErr, T, Response> FromRes<Json, Response, CustErr> for T
Source§async fn from_res(res: Response) -> Result<T, ServerFnError<CustErr>>
async fn from_res(res: Response) -> Result<T, ServerFnError<CustErr>>
Attempts to deserialize the outputs from a response.
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> IntoDeviceIds<String> for T
impl<T> IntoDeviceIds<String> for T
fn into_device_ids(self) -> Vec<String>
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 moreSource§impl<CustErr, T, Response> IntoRes<Cbor, Response, CustErr> for T
impl<CustErr, T, Response> IntoRes<Cbor, Response, CustErr> for T
Source§async fn into_res(self) -> Result<Response, ServerFnError<CustErr>>
async fn into_res(self) -> Result<Response, ServerFnError<CustErr>>
Attempts to serialize the output into an HTTP response.
Source§impl<CustErr, T, Response> IntoRes<Json, Response, CustErr> for T
impl<CustErr, T, Response> IntoRes<Json, Response, CustErr> for T
Source§async fn into_res(self) -> Result<Response, ServerFnError<CustErr>>
async fn into_res(self) -> Result<Response, ServerFnError<CustErr>>
Attempts to serialize the output into an HTTP response.