pub struct AcceptUser {
pub email: Option<String>,
pub phone: Option<String>,
pub name: Option<String>,
}Expand description
User data for accepting invitations (preferred format)
At least one of email or phone must be provided.
§Example
use vortex_sdk::AcceptUser;
// With email only
let user = AcceptUser::new().with_email("user@example.com");
// With email and name
let user = AcceptUser::new()
.with_email("user@example.com")
.with_name("John Doe");
// With all fields
let user = AcceptUser::new()
.with_email("user@example.com")
.with_phone("+1234567890")
.with_name("John Doe");Fields§
§email: Option<String>§phone: Option<String>§name: Option<String>Implementations§
Source§impl AcceptUser
impl AcceptUser
Trait Implementations§
Source§impl Clone for AcceptUser
impl Clone for AcceptUser
Source§fn clone(&self) -> AcceptUser
fn clone(&self) -> AcceptUser
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 AcceptUser
impl Debug for AcceptUser
Source§impl Default for AcceptUser
impl Default for AcceptUser
Source§fn default() -> AcceptUser
fn default() -> AcceptUser
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AcceptUser
impl<'de> Deserialize<'de> for AcceptUser
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<AcceptUser> for AcceptInvitationParam
impl From<AcceptUser> for AcceptInvitationParam
Source§fn from(user: AcceptUser) -> Self
fn from(user: AcceptUser) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AcceptUser
impl RefUnwindSafe for AcceptUser
impl Send for AcceptUser
impl Sync for AcceptUser
impl Unpin for AcceptUser
impl UnwindSafe for AcceptUser
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