pub struct DiscoveryClient { /* private fields */ }Implementations§
Source§impl DiscoveryClient
impl DiscoveryClient
pub fn new( cache_path: Option<PathBuf>, default_scheme: Option<String>, relay_hints: Option<Vec<String>>, enterprise_directory_hints: Option<Vec<String>>, timeout_seconds: u64, allow_insecure_http: bool, allow_insecure_tls: bool, ca_file: Option<String>, mtls_enabled: bool, cert_file: Option<String>, key_file: Option<String>, ) -> AcpResult<Self>
pub fn seed(&mut self, identity_document: Map<String, Value>) -> AcpResult<()>
pub fn register_identity_document( &mut self, identity_document: Map<String, Value>, ) -> AcpResult<()>
pub fn resolve(&mut self, agent_id: &str) -> AcpResult<Map<String, Value>>
pub fn resolve_well_known( &mut self, base_url: &str, expected_agent_id: Option<&str>, ) -> AcpResult<Map<String, Value>>
Trait Implementations§
Source§impl Clone for DiscoveryClient
impl Clone for DiscoveryClient
Source§fn clone(&self) -> DiscoveryClient
fn clone(&self) -> DiscoveryClient
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 moreAuto Trait Implementations§
impl Freeze for DiscoveryClient
impl !RefUnwindSafe for DiscoveryClient
impl Send for DiscoveryClient
impl Sync for DiscoveryClient
impl Unpin for DiscoveryClient
impl UnsafeUnpin for DiscoveryClient
impl !UnwindSafe for DiscoveryClient
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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