pub struct AccessControlExample;Expand description
Example: Access Control
This example demonstrates token-gated AI access with tier-based features and custom AI agents.
Implementations§
Source§impl AccessControlExample
impl AccessControlExample
Sourcepub async fn access_tiers() -> Result<()>
pub async fn access_tiers() -> Result<()>
Token-gated access configuration
Sourcepub async fn feature_quotas() -> Result<()>
pub async fn feature_quotas() -> Result<()>
Tier-based feature quotas
Sourcepub async fn custom_agents(_api_key: &str) -> Result<()>
pub async fn custom_agents(_api_key: &str) -> Result<()>
Custom AI agent creation
Sourcepub async fn usage_monitoring() -> Result<()>
pub async fn usage_monitoring() -> Result<()>
Usage monitoring per tier
Sourcepub async fn network_effects() -> Result<()>
pub async fn network_effects() -> Result<()>
Network effects and economics
Auto Trait Implementations§
impl Freeze for AccessControlExample
impl RefUnwindSafe for AccessControlExample
impl Send for AccessControlExample
impl Sync for AccessControlExample
impl Unpin for AccessControlExample
impl UnwindSafe for AccessControlExample
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more