pub struct Connection {
pub id: String,
pub created_at: String,
pub did: Option<String>,
pub state: String,
pub role: String,
pub auto_accept: Option<Value>,
pub their_label: Option<String>,
pub their_did: Option<String>,
pub verkey: Option<String>,
}Expand description
A single connection structure
Fields§
§id: StringThe connection id used for further functionality
created_at: StringWhen the connection is created
did: Option<String>Your did used in the connection process
state: StringThe current connection state
role: StringTheir role in the connection process
auto_accept: Option<Value>Auto accept state
their_label: Option<String>Their label as set when the connection is initialized
their_did: Option<String>Optional their did used in the connection proces
verkey: Option<String>(AFJ) verkey used
Trait Implementations§
Source§impl Clone for Connection
impl Clone for Connection
Source§fn clone(&self) -> Connection
fn clone(&self) -> Connection
Returns a duplicate of the value. Read more
1.0.0 · 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 Connection
impl Debug for Connection
Source§impl<'de> Deserialize<'de> for Connection
impl<'de> Deserialize<'de> for Connection
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
Source§impl PartialEq for Connection
impl PartialEq for Connection
Source§impl Serialize for Connection
impl Serialize for Connection
impl Eq for Connection
impl StructuralPartialEq for Connection
Auto Trait Implementations§
impl Freeze for Connection
impl RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl UnwindSafe for Connection
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