Skip to content

Commit 23b18a7

Browse files
add optional attach to request cred content
Signed-off-by: George Mulhearn <gmulhearn@anonyome.com>
1 parent 2b19d31 commit 23b18a7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

aries/messages/src/msg_fields/protocols/cred_issuance/v2/request_credential.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ pub struct RequestCredentialV2Content {
2020
pub formats: Vec<AttachmentFormatSpecifier<RequestCredentialAttachmentFormatType>>,
2121
#[serde(rename = "requests~attach")]
2222
pub requests_attach: Vec<Attachment>,
23+
#[builder(default)]
24+
#[serde(rename = "~attach")]
25+
#[serde(skip_serializing_if = "Option::is_none")]
26+
pub attach: Option<Vec<Attachment>>,
2327
}
2428

2529
#[derive(Clone, Debug, Deserialize, Serialize, Default, PartialEq, TypedBuilder)]

0 commit comments

Comments
 (0)