pub struct DeleteUser {
pub name: String,
}
Expand description
Serialized arguments for the delete_user
server function.
Server function to delete a user
Removes a user from the local database.
Fields§
§name: String
Trait Implementations§
Source§impl Clone for DeleteUser
impl Clone for DeleteUser
Source§fn clone(&self) -> DeleteUser
fn clone(&self) -> DeleteUser
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 DeleteUser
impl Debug for DeleteUser
Source§impl<'de> Deserialize<'de> for DeleteUser
impl<'de> Deserialize<'de> for DeleteUser
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<DeleteUser> for String
impl From<DeleteUser> for String
Source§fn from(value: DeleteUser) -> Self
fn from(value: DeleteUser) -> Self
Converts to this type from the input type.
Source§impl From<String> for DeleteUser
impl From<String> for DeleteUser
Source§impl Serialize for DeleteUser
impl Serialize for DeleteUser
Source§impl ServerFn for DeleteUser
impl ServerFn for DeleteUser
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 = Request<Body>
type ServerRequest = Request<Body>
The type of the HTTP request when received by the server function on the server side.
Source§type ServerResponse = Response<Body>
type ServerResponse = Response<Body>
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<Request<Body>, Response<Body>>>>
fn middlewares() -> Vec<Arc<dyn Layer<Request<Body>, Response<Body>>>>
Middleware that should be applied to this server function.
Auto Trait Implementations§
impl Freeze for DeleteUser
impl RefUnwindSafe for DeleteUser
impl Send for DeleteUser
impl Sync for DeleteUser
impl Unpin for DeleteUser
impl UnwindSafe for DeleteUser
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<CustErr, T, Request> FromReq<GetUrl, Request, CustErr> for Twhere
Request: Req<CustErr> + Send + 'static,
T: DeserializeOwned,
impl<CustErr, T, Request> FromReq<GetUrl, Request, CustErr> for Twhere
Request: Req<CustErr> + Send + 'static,
T: DeserializeOwned,
§impl<CustErr, T, Request> FromReq<Json, Request, CustErr> for Twhere
Request: Req<CustErr> + Send + 'static,
T: DeserializeOwned,
impl<CustErr, T, Request> FromReq<Json, Request, CustErr> for Twhere
Request: Req<CustErr> + Send + 'static,
T: DeserializeOwned,
§impl<CustErr, T, Request> FromReq<PostUrl, Request, CustErr> for Twhere
Request: Req<CustErr> + Send + 'static,
T: DeserializeOwned,
impl<CustErr, T, Request> FromReq<PostUrl, Request, CustErr> for Twhere
Request: Req<CustErr> + Send + 'static,
T: DeserializeOwned,
§impl<CustErr, T, Response> FromRes<Json, Response, CustErr> for T
impl<CustErr, T, Response> FromRes<Json, Response, CustErr> for T
§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<CustErr, T, Request> IntoReq<GetUrl, Request, CustErr> for T
impl<CustErr, T, Request> IntoReq<GetUrl, Request, CustErr> for T
§impl<CustErr, T, Request> IntoReq<Json, Request, CustErr> for T
impl<CustErr, T, Request> IntoReq<Json, Request, CustErr> for T
§impl<CustErr, T, Request> IntoReq<PostUrl, Request, CustErr> for T
impl<CustErr, T, Request> IntoReq<PostUrl, Request, CustErr> for T
§impl<CustErr, T, Response> IntoRes<Json, Response, CustErr> for T
impl<CustErr, T, Response> IntoRes<Json, Response, CustErr> for T
§impl<I> IntoResettable<String> for I
impl<I> IntoResettable<String> for I
§fn into_resettable(self) -> Resettable<String>
fn into_resettable(self) -> Resettable<String>
Convert to the intended resettable type
§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.