pub struct InvitationData {
pub app_url: String,
pub email: String,
pub organization_id: Uuid,
pub redirect_uri: String,
pub user_role: i32,
}
Fields§
§app_url: String
The url of the app that the user will be directed to in order to set their password. Usually admin.trieve.ai, but may differ for local dev or self-hosted setups.
email: String
The email of the user to invite. Must be a valid email as they will be sent an email to register.
organization_id: Uuid
The id of the organization to invite the user to.
redirect_uri: String
The url that the user will be redirected to after setting their password.
user_role: i32
The role the user will have in the organization. 0 = User, 1 = Admin, 2 = Owner.
Implementations§
Trait Implementations§
Source§impl Clone for InvitationData
impl Clone for InvitationData
Source§fn clone(&self) -> InvitationData
fn clone(&self) -> InvitationData
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 InvitationData
impl Debug for InvitationData
Source§impl Default for InvitationData
impl Default for InvitationData
Source§fn default() -> InvitationData
fn default() -> InvitationData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InvitationData
impl<'de> Deserialize<'de> for InvitationData
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 PartialEq for InvitationData
impl PartialEq for InvitationData
Source§impl Serialize for InvitationData
impl Serialize for InvitationData
impl StructuralPartialEq for InvitationData
Auto Trait Implementations§
impl Freeze for InvitationData
impl RefUnwindSafe for InvitationData
impl Send for InvitationData
impl Sync for InvitationData
impl Unpin for InvitationData
impl UnwindSafe for InvitationData
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