#[repr(C)]pub struct aws_signable {
pub allocator: *mut aws_allocator,
pub impl_: *mut c_void,
pub vtable: *mut aws_signable_vtable,
}Expand description
Signable is a generic interface for any kind of object that can be cryptographically signed.
Like signing_result, the signable interface presents
(1) Properties - A set of key-value pairs (2) Property Lists - A set of named key-value pair lists
as well as
(3) A message payload modeled as a stream
When creating a signable “subclass” the query interface should map to retrieving the properties of the underlying object needed by signing algorithms that can operate on it.
As an example, if a signable implementation wrapped an http request, you would query request elements like method and uri from the property interface, headers would be queried via the property list interface, and the request body would map to the payload stream.
String constants that map to agreed on keys for particular signable types (“METHOD”, “URI”, “HEADERS”, etc…) are exposed in appropriate header files.
Fields
allocator: *mut aws_allocatorimpl_: *mut c_voidvtable: *mut aws_signable_vtableTrait Implementations
sourceimpl Clone for aws_signable
impl Clone for aws_signable
sourcefn clone(&self) -> aws_signable
fn clone(&self) -> aws_signable
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more