pub enum SearchUsersBody {
Variant0 {
search_term: String,
},
Variant1 {
emails: Vec<String>,
phone_numbers: Vec<String>,
wallet_addresses: Vec<SearchUsersBodyVariant1WalletAddressesItem>,
},
}Expand description
SearchUsersBody
JSON schema
{
"oneOf": [
{
"type": "object",
"required": [
"search_term"
],
"properties": {
"search_term": {
"type": "string"
}
}
},
{
"type": "object",
"required": [
"emails",
"phoneNumbers",
"walletAddresses"
],
"properties": {
"emails": {
"type": "array",
"items": {
"type": "string",
"format": "email"
}
},
"phoneNumbers": {
"type": "array",
"items": {
"type": "string"
}
},
"walletAddresses": {
"type": "array",
"items": {
"oneOf": [
{
"type": "string"
},
{
"type": "string"
}
]
}
}
}
}
]
}Variants§
Trait Implementations§
Source§impl Clone for SearchUsersBody
impl Clone for SearchUsersBody
Source§fn clone(&self) -> SearchUsersBody
fn clone(&self) -> SearchUsersBody
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 SearchUsersBody
impl Debug for SearchUsersBody
Source§impl<'de> Deserialize<'de> for SearchUsersBody
impl<'de> Deserialize<'de> for SearchUsersBody
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SearchUsersBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SearchUsersBody, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&SearchUsersBody> for SearchUsersBody
impl From<&SearchUsersBody> for SearchUsersBody
Source§fn from(value: &SearchUsersBody) -> SearchUsersBody
fn from(value: &SearchUsersBody) -> SearchUsersBody
Converts to this type from the input type.
Source§impl Serialize for SearchUsersBody
impl Serialize for SearchUsersBody
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for SearchUsersBody
impl RefUnwindSafe for SearchUsersBody
impl Send for SearchUsersBody
impl Sync for SearchUsersBody
impl Unpin for SearchUsersBody
impl UnwindSafe for SearchUsersBody
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