Struct didcomm_rs::DidcommHeader [−][src]
pub struct DidcommHeader {
pub id: usize,
pub thid: String,
pub pthid: String,
pub m_type: String,
pub to: Vec<String>,
pub from: Option<String>,
pub created_time: Option<u64>,
pub expires_time: Option<u64>,
// some fields omitted
}
Fields
id: usize
thid: String
pthid: String
m_type: String
to: Vec<String>
from: Option<String>
created_time: Option<u64>
expires_time: Option<u64>
Implementations
Generates random id
TODO: Should this be public?
Returns DIDComm message URI as defined by spec: https://identity.foundation/didcomm-messaging/spec/#didcomm-message-uris
Sets current message’s thid
and pthid
to one from replying_to
Parameters
replying_to
- ref to header we’re replying
Getter method for from_prior
retreival
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DidcommHeader
impl Send for DidcommHeader
impl Sync for DidcommHeader
impl Unpin for DidcommHeader
impl UnwindSafe for DidcommHeader
Blanket Implementations
Mutably borrows from an owned value. Read more