pub struct CallMethod {
pub action_id: String,
pub method_id: String,
pub provider_id: Option<String>,
pub data: Value,
}Expand description
Serialized arguments for the call_method server function.
Fields§
§action_id: String§method_id: String§provider_id: Option<String>§data: ValueTrait Implementations§
Source§impl Clone for CallMethod
impl Clone for CallMethod
Source§fn clone(&self) -> CallMethod
fn clone(&self) -> CallMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CallMethod
impl Debug for CallMethod
Source§impl<'de> Deserialize<'de> for CallMethod
impl<'de> Deserialize<'de> for CallMethod
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 CallMethod
impl Serialize for CallMethod
Source§impl ServerFn for CallMethod
impl ServerFn for CallMethod
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 Server = BrowserMockServer
type Server = BrowserMockServer
The type of the HTTP server that will send the response from the server side. Read more
Source§type Protocol = Http<PostUrl, Post<JsonEncoding>>
type Protocol = Http<PostUrl, Post<JsonEncoding>>
The protocol the server function uses to communicate with the client.
Source§type Error = ServerFnError
type Error = ServerFnError
The type of error in the server function return.
Typically
ServerFnError, but allowed to be any type that implements FromServerFnError.Source§type InputStreamError = ServerFnError
type InputStreamError = ServerFnError
The type of error in the server function for stream items sent from the client to the server.
Typically
ServerFnError, but allowed to be any type that implements FromServerFnError.Source§type OutputStreamError = ServerFnError
type OutputStreamError = ServerFnError
The type of error in the server function for stream items sent from the server to the client.
Typically
ServerFnError, but allowed to be any type that implements FromServerFnError.Source§fn middlewares() -> Vec<Arc<dyn Layer<<Self::Server as Server<Self::Error>>::Request, <Self::Server as Server<Self::Error>>::Response>>>
fn middlewares() -> Vec<Arc<dyn Layer<<Self::Server as Server<Self::Error>>::Request, <Self::Server as Server<Self::Error>>::Response>>>
Middleware that should be applied to this server function.
Source§async fn run_body(self) -> Result<(), ServerFnError>
async fn run_body(self) -> Result<(), 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 CallMethod
impl RefUnwindSafe for CallMethod
impl Send for CallMethod
impl Sync for CallMethod
impl Unpin for CallMethod
impl UnsafeUnpin for CallMethod
impl UnwindSafe for CallMethod
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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<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<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.