Skip to main content

CredentialsRegistryFallback

Trait CredentialsRegistryFallback 

Source
pub trait CredentialsRegistryFallback {
    // Provided method
    fn marker_slice(&self) -> &'static [CredentialFieldMarker] { ... }
}
Expand description

Fallback path: when T does NOT implement HasCredentialMarkers, the inherent marker_slice doesn’t apply, autoref kicks in, and the reference-typed trait impl below supplies the empty-slice default.

Consumers do not name this trait; the #[plexus_macros::activation] codegen brings it into scope via a use declaration inside the macro-generated compute_method_schemas body, so the same call site ((&probe).marker_slice()) works whether the return type derives Credentials or not.

Provided Methods§

Source

fn marker_slice(&self) -> &'static [CredentialFieldMarker]

Empty-slice fallback. Pre-AUTHZ-CRED-MACRO-3 behavior — every method’s MethodSchema.credentials was []; the fallback preserves that for types that don’t derive Credentials.

Implementors§