pub struct FarcasterAuthenticateRequestBody {
pub channel_token: String,
pub fid: f64,
pub message: String,
pub mode: Option<FarcasterAuthenticateRequestBodyMode>,
pub signature: String,
}Expand description
The request body for authenticating with Farcaster.
JSON schema
{
"title": "FarcasterAuthenticateRequestBody",
"description": "The request body for authenticating with Farcaster.",
"type": "object",
"required": [
"channel_token",
"fid",
"message",
"signature"
],
"properties": {
"channel_token": {
"type": "string"
},
"fid": {
"type": "number"
},
"message": {
"type": "string"
},
"mode": {
"type": "string",
"enum": [
"login-or-sign-up",
"no-signup"
]
},
"signature": {
"type": "string"
}
}
}Fields§
§channel_token: String§fid: f64§message: String§mode: Option<FarcasterAuthenticateRequestBodyMode>§signature: StringTrait Implementations§
Source§impl Clone for FarcasterAuthenticateRequestBody
impl Clone for FarcasterAuthenticateRequestBody
Source§fn clone(&self) -> FarcasterAuthenticateRequestBody
fn clone(&self) -> FarcasterAuthenticateRequestBody
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<'de> Deserialize<'de> for FarcasterAuthenticateRequestBody
impl<'de> Deserialize<'de> for FarcasterAuthenticateRequestBody
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<&FarcasterAuthenticateRequestBody> for FarcasterAuthenticateRequestBody
impl From<&FarcasterAuthenticateRequestBody> for FarcasterAuthenticateRequestBody
Source§fn from(value: &FarcasterAuthenticateRequestBody) -> Self
fn from(value: &FarcasterAuthenticateRequestBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FarcasterAuthenticateRequestBody
impl RefUnwindSafe for FarcasterAuthenticateRequestBody
impl Send for FarcasterAuthenticateRequestBody
impl Sync for FarcasterAuthenticateRequestBody
impl Unpin for FarcasterAuthenticateRequestBody
impl UnsafeUnpin for FarcasterAuthenticateRequestBody
impl UnwindSafe for FarcasterAuthenticateRequestBody
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