pub struct AgentMeshClient {
pub identity: AgentIdentity,
pub trust: TrustManager,
pub policy: PolicyEngine,
pub audit: AuditLogger,
}Expand description
Unified governance client combining identity, policy, trust, and audit.
This is the primary entry point for most users.
Fields§
§identity: AgentIdentity§trust: TrustManager§policy: PolicyEngine§audit: AuditLoggerImplementations§
Source§impl AgentMeshClient
impl AgentMeshClient
Sourcepub fn new(agent_id: &str) -> Result<Self, ClientError>
pub fn new(agent_id: &str) -> Result<Self, ClientError>
Create a new client with default configuration.
Sourcepub fn with_options(
agent_id: &str,
opts: ClientOptions,
) -> Result<Self, ClientError>
pub fn with_options( agent_id: &str, opts: ClientOptions, ) -> Result<Self, ClientError>
Create a new client with custom options.
Sourcepub fn execute_with_governance(
&self,
action: &str,
context: Option<&HashMap<String, Value>>,
) -> GovernanceResult
pub fn execute_with_governance( &self, action: &str, context: Option<&HashMap<String, Value>>, ) -> GovernanceResult
Run an action through the full governance pipeline: policy → audit → trust update.
Auto Trait Implementations§
impl !Freeze for AgentMeshClient
impl RefUnwindSafe for AgentMeshClient
impl Send for AgentMeshClient
impl Sync for AgentMeshClient
impl Unpin for AgentMeshClient
impl UnsafeUnpin for AgentMeshClient
impl UnwindSafe for AgentMeshClient
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