Trait racal::FromApiState
source · pub trait FromApiState<ApiState> {
// Required method
fn from_state(state: &ApiState) -> &Self;
}
Expand description
A trait that should be implemented for API states, to support giving access to the API state to the queryables.
Required Methods§
sourcefn from_state(state: &ApiState) -> &Self
fn from_state(state: &ApiState) -> &Self
Gets the wanted state (Self
) from the current ApiState
,
by borrowing if possible
Object Safety§
This trait is not object safe.