Weave documentation
Rust referenceweave-identity-mock

weave-identity-mock · crate

Source declarations, signatures and documentation for crate.

Source: sigil/weave/tools/adapters/mock/src/lib.rs. SHA-256: 9d54eda254e53bfb0baa8cc43a7e4d00c88f445130bef89d79d70cdaa4390415.

This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.

::MockAdapter

Mock adapter for testing

pub struct MockAdapter {

}

Source line: 41.

::MockAdapter::new

Create a new mock adapter

pub fn new() -> Self;

Source line: 54.

::MockAdapter::set_verification_result

Set the verification result for a specific identity

pub fn set_verification_result(&self, identity_id: &str, result: bool);

Source line: 64.

::MockAdapter::create_mock_identity

Create a mock identity with specific properties

pub async fn create_mock_identity(
        &self,
        identifier: &str,
        identity_type: &str,
        parent: Option<String>,
    ) -> Result<Identity>;

Source line: 70.

On this page