pub struct AgentUrl {
pub agent_id: AgentId,
pub protocol: Option<String>,
pub resource: Option<String>,
pub routes: Vec<String>,
}Expand description
A parsed Agent URL (Agent Identity Section 3.5):
did:agent:<key>[/<protocol>/<resource>][?route=<origin>...].
protocol and resource are both present or both absent.
Fields§
§agent_id: AgentId§protocol: Option<String>§resource: Option<String>§routes: Vec<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentUrl
impl<'de> Deserialize<'de> for AgentUrl
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 AgentUrl
impl StructuralPartialEq for AgentUrl
Auto Trait Implementations§
impl Freeze for AgentUrl
impl RefUnwindSafe for AgentUrl
impl Send for AgentUrl
impl Sync for AgentUrl
impl Unpin for AgentUrl
impl UnsafeUnpin for AgentUrl
impl UnwindSafe for AgentUrl
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.