pub struct ContactRequest {
pub request_id: String,
pub from_user_id: UserId,
pub to_user_id: UserId,
pub message: Option<String>,
pub requested_permissions: ProfilePermissions,
pub sender_proof: ChallengeProof,
pub created_at: SystemTime,
pub expires_at: SystemTime,
pub signature: Vec<u8>,
}
Expand description
Contact request between users
Fields§
§request_id: String
Request unique ID
from_user_id: UserId
Sender user ID
to_user_id: UserId
Recipient user ID
message: Option<String>
Optional message from sender
requested_permissions: ProfilePermissions
Requested access permissions
sender_proof: ChallengeProof
Proof that sender controls their identity
created_at: SystemTime
Request creation time
expires_at: SystemTime
Request expiration time
signature: Vec<u8>
Request signature
Trait Implementations§
Source§impl Clone for ContactRequest
impl Clone for ContactRequest
Source§fn clone(&self) -> ContactRequest
fn clone(&self) -> ContactRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ContactRequest
impl Debug for ContactRequest
Source§impl<'de> Deserialize<'de> for ContactRequest
impl<'de> Deserialize<'de> for ContactRequest
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
Auto Trait Implementations§
impl Freeze for ContactRequest
impl RefUnwindSafe for ContactRequest
impl Send for ContactRequest
impl Sync for ContactRequest
impl Unpin for ContactRequest
impl UnwindSafe for ContactRequest
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