Expand description
Rust SDK for the AEO Protocol v0.1.
Parse, build, validate, and fetch AEO declaration documents.
Specification: https://github.com/mizcausevic-dev/aeo-protocol-spec
§Example
use aeo_protocol::{Document, fetch_well_known};
let doc = fetch_well_known("https://mizcausevic-dev.github.io")?;
println!("{}", doc.entity.name);Structs§
- Answer
Constraints - Soft constraints for answer engines synthesizing about this entity.
- Audit
- Audit configuration for the declaration.
- Authority
- Authority information for the entity.
- Citation
Preferences - Citation preferences for the entity.
- Claim
- An asserted fact about the entity.
- Document
- A complete AEO Protocol v0.1 declaration document.
- Entity
- The entity the declaration is about.
- Verification
- A proof of ownership or control over an identifier.
Enums§
- AeoError
- Errors returned by the AEO SDK.
- Audit
Mode - Audit mode for a declaration document.
- Confidence
- Confidence level for a claim.
- Entity
Type - The five entity types defined by AEO Protocol v0.1.
- Verification
Type - The six verification types defined by AEO Protocol v0.1.
Constants§
- PROTOCOL_
VERSION - The AEO Protocol version supported by this SDK.
- SDK_
VERSION - The version of this SDK crate.
Functions§
- fetch_
well_ known - Fetch and parse the AEO declaration at
origin’s well-known URL. - well_
known_ url - Build the canonical well-known URL for an origin.