pub struct EditCountableForm {Show 13 fields
pub session_user_uuid: Uuid,
pub session_username: String,
pub session_token: Uuid,
pub countable_key: Uuid,
pub countable_kind: CountableKind,
pub countable_name: String,
pub countable_count: i32,
pub countable_hours: i64,
pub countable_mins: i64,
pub countable_secs: i64,
pub countable_millis: i64,
pub countable_hunttype: String,
pub countable_charm: Option<String>,
}
Expand description
Serialized arguments for the edit_countable_form
server function.
Fields§
§session_user_uuid: Uuid
§session_username: String
§session_token: Uuid
§countable_key: Uuid
§countable_kind: CountableKind
§countable_name: String
§countable_count: i32
§countable_hours: i64
§countable_mins: i64
§countable_secs: i64
§countable_millis: i64
§countable_hunttype: String
§countable_charm: Option<String>
Trait Implementations§
Source§impl Clone for EditCountableForm
impl Clone for EditCountableForm
Source§fn clone(&self) -> EditCountableForm
fn clone(&self) -> EditCountableForm
Returns a copy 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 EditCountableForm
impl Debug for EditCountableForm
Source§impl<'de> Deserialize<'de> for EditCountableForm
impl<'de> Deserialize<'de> for EditCountableForm
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 Serialize for EditCountableForm
impl Serialize for EditCountableForm
Source§impl ServerFn for EditCountableForm
impl ServerFn for EditCountableForm
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 = ActixRequest
type ServerRequest = ActixRequest
The type of the HTTP request when received by the server function on the server side.
Source§type ServerResponse = ActixResponse
type ServerResponse = ActixResponse
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<ActixRequest, ActixResponse>>>
fn middlewares() -> Vec<Arc<dyn Layer<ActixRequest, ActixResponse>>>
Middleware that should be applied to this server function.
Source§fn run_body(self) -> impl Future<Output = Result<(), ServerFnError>> + Send
fn run_body(self) -> impl Future<Output = Result<(), ServerFnError>> + Send
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 EditCountableForm
impl RefUnwindSafe for EditCountableForm
impl Send for EditCountableForm
impl Sync for EditCountableForm
impl Unpin for EditCountableForm
impl UnwindSafe for EditCountableForm
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> 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.