Struct didcomm_rs::AttachmentDataBuilder [−][src]
pub struct AttachmentDataBuilder { /* fields omitted */ }
Expand description
Builder for AttachmentData
Implementations
[optional] The hash of the content encoded in multi-hash format. Used as an integrity check for the attachment, and MUST be used if the data is referenced via the links data attribute.
Parameters
hash
- String of hash to be attached
[optional] A list of zero or more locations at which the content may be fetched. Adds one link into list of links. No uniqueness is guarranteed.
Parameters
link
- String representation of where to fetch the attachment
Raw bytes of the payload to be attached - will be BASE64URL encoded before attaching.
Parameters
payload
- set of bytes to be attached as payload
Same as with_raw_payload
, but data is already encoded
Parameters
payload
- BASE64URL encoded bytes of payload