pub struct TypeDidConversation {
pub conversation_id: String,
pub mode: TypeDidMode,
pub profile: String,
pub protocol: String,
pub expires_at: Option<u64>,
}Expand description
TypeDID conversation metadata bound into the envelope signature.
Fields§
§conversation_id: StringStable task, session, room, or thread id from the outer protocol.
mode: TypeDidModeDelivery mode.
profile: StringNegotiated TypeDID profile id.
protocol: StringOuter protocol hint, such as a2a, acp, band, or https.
expires_at: Option<u64>Optional payload expiry copied from the negotiated profile or caller.
Implementations§
Source§impl TypeDidConversation
impl TypeDidConversation
Sourcepub fn new(
conversation_id: impl Into<String>,
mode: TypeDidMode,
profile: impl Into<String>,
protocol: impl Into<String>,
) -> Self
pub fn new( conversation_id: impl Into<String>, mode: TypeDidMode, profile: impl Into<String>, protocol: impl Into<String>, ) -> Self
Construct TypeDID conversation metadata.
Sourcepub fn with_expires_at(self, expires_at: u64) -> Self
pub fn with_expires_at(self, expires_at: u64) -> Self
Attach an absolute unix-seconds expiry to this conversation metadata.
Trait Implementations§
Source§impl Clone for TypeDidConversation
impl Clone for TypeDidConversation
Source§fn clone(&self) -> TypeDidConversation
fn clone(&self) -> TypeDidConversation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypeDidConversation
impl Debug for TypeDidConversation
Source§impl<'de> Deserialize<'de> for TypeDidConversation
impl<'de> Deserialize<'de> for TypeDidConversation
Source§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
impl Eq for TypeDidConversation
Source§impl PartialEq for TypeDidConversation
impl PartialEq for TypeDidConversation
Source§fn eq(&self, other: &TypeDidConversation) -> bool
fn eq(&self, other: &TypeDidConversation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TypeDidConversation
impl Serialize for TypeDidConversation
impl StructuralPartialEq for TypeDidConversation
Auto Trait Implementations§
impl Freeze for TypeDidConversation
impl RefUnwindSafe for TypeDidConversation
impl Send for TypeDidConversation
impl Sync for TypeDidConversation
impl Unpin for TypeDidConversation
impl UnsafeUnpin for TypeDidConversation
impl UnwindSafe for TypeDidConversation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more