pub trait SetCodeAuthorizationAuthorityView {
// Required method
fn authority_for(
&self,
authorization_index: usize,
authorization: SetCodeAuthorization,
) -> Option<Address>;
}Expand description
Caller-provided source of recovered authorization authorities.
The slice implementation is intended for tests and small fixtures. Production callers with large authorization lists should use an indexed implementation to avoid repeated linear scans.
Required Methods§
Returns the recovered authority for authorization at
authorization_index.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".