Skip to content

Commit

Permalink
Add new function to CredentialOfferParameters (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
rschulman authored Dec 20, 2024
1 parent 3717043 commit 17b3702
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/credential_offer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,18 @@ pub struct CredentialOfferParameters {
}

impl CredentialOfferParameters {
pub fn new(
credential_issuer: IssuerUrl,
credential_configuration_ids: Vec<CredentialConfigurationId>,
grants: Option<CredentialOfferGrants>,
) -> Self {
Self {
credential_issuer,
credential_configuration_ids,
grants,
}
}

pub fn issuer(&self) -> &IssuerUrl {
&self.credential_issuer
}
Expand Down

0 comments on commit 17b3702

Please sign in to comment.