pub struct AgentValidator { /* private fields */ }Expand description
Validator for agent configuration
Implementations§
Source§impl AgentValidator
impl AgentValidator
Sourcepub fn new(config: &AgentConfig) -> Self
pub fn new(config: &AgentConfig) -> Self
Create a new validator
Sourcepub async fn validate(&self) -> Result<(), ValidationError>
pub async fn validate(&self) -> Result<(), ValidationError>
Validate the agent configuration
Auto Trait Implementations§
impl Freeze for AgentValidator
impl RefUnwindSafe for AgentValidator
impl Send for AgentValidator
impl Sync for AgentValidator
impl Unpin for AgentValidator
impl UnsafeUnpin for AgentValidator
impl UnwindSafe for AgentValidator
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