1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
use super::CredentialSchema;
use crate::OfferId;
use serde::{Deserialize, Serialize};

/// A credential offer is how an issuer informs a potential holder that
/// a credential is available to them
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct CredentialOffer {
    /// The credential offer id is a cryptographic nonce, this must never repeat
    pub id: OfferId,
    /// The schema for the credential that the issuer is offering to sign
    pub schema: CredentialSchema,
}