pub struct VerificationVoucher {
pub voucher_id: String,
pub subject_user_id: UserId,
pub voucher_user_id: UserId,
pub relationship_type: RelationshipType,
pub confidence: f64,
pub message: Option<String>,
pub created_at: SystemTime,
pub expires_at: Option<SystemTime>,
pub signature: Vec<u8>,
}
Expand description
Social verification voucher
Fields§
§voucher_id: String
Voucher unique ID
subject_user_id: UserId
User being vouched for
voucher_user_id: UserId
User providing the voucher
relationship_type: RelationshipType
Type of relationship
confidence: f64
Confidence level (0.0 to 1.0)
message: Option<String>
Optional verification message
created_at: SystemTime
Voucher creation time
expires_at: Option<SystemTime>
Voucher expiration (if any)
signature: Vec<u8>
Voucher signature
Trait Implementations§
Source§impl Clone for VerificationVoucher
impl Clone for VerificationVoucher
Source§fn clone(&self) -> VerificationVoucher
fn clone(&self) -> VerificationVoucher
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 VerificationVoucher
impl Debug for VerificationVoucher
Source§impl<'de> Deserialize<'de> for VerificationVoucher
impl<'de> Deserialize<'de> for VerificationVoucher
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 VerificationVoucher
impl RefUnwindSafe for VerificationVoucher
impl Send for VerificationVoucher
impl Sync for VerificationVoucher
impl Unpin for VerificationVoucher
impl UnwindSafe for VerificationVoucher
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