pub struct AgentBootstrapData {
pub config: AgentConfigData,
pub uns_records: Vec<UnsRecord>,
pub key_pairs: Vec<BootstrapKeyPair>,
}
Expand description
Bootstrap data an agent receives from its trustee on startup
Fields§
§config: AgentConfigData
§uns_records: Vec<UnsRecord>
§key_pairs: Vec<BootstrapKeyPair>
Implementations§
source§impl AgentBootstrapData
impl AgentBootstrapData
pub fn get_record_by_name(&self, name: &str) -> Option<&UnsRecord>
pub fn get_record_by_name_must_exist(&self, name: &str) -> &UnsRecord
pub fn get_record_by_id(&self, id: MeshId) -> Option<&UnsRecord>
pub fn get_record_by_id_must_exist(&self, id: MeshId) -> &UnsRecord
pub fn get_agent_id(&self, name: &str) -> Result<MeshId, MeshError>
Trait Implementations§
source§impl Clone for AgentBootstrapData
impl Clone for AgentBootstrapData
source§fn clone(&self) -> AgentBootstrapData
fn clone(&self) -> AgentBootstrapData
Returns a copy 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 AgentBootstrapData
impl RefUnwindSafe for AgentBootstrapData
impl Send for AgentBootstrapData
impl Sync for AgentBootstrapData
impl Unpin for AgentBootstrapData
impl UnwindSafe for AgentBootstrapData
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)