pub trait AnyEndpointGenerator:
Any
+ AnyExt
+ BoxedAny
+ DynClone
+ Send
+ Sync
+ Debug
+ Serialize
+ Deserialize {
// Required methods
fn generate<'life0, 'async_trait>(
&'life0 self,
db_conns: DbConns,
) -> Pin<Box<dyn Future<Output = Result<(Endpoints, Option<Bytes>)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn id(&self) -> Result<Bytes>;
}Expand description
Establishes a method to discover a given schema and generates endpoints associated to it.
Required Methods§
fn generate<'life0, 'async_trait>(
&'life0 self,
db_conns: DbConns,
) -> Pin<Box<dyn Future<Output = Result<(Endpoints, Option<Bytes>)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Trait Implementations§
Source§impl<'typetag> Serialize for dyn AnyEndpointGenerator + 'typetag
impl<'typetag> Serialize for dyn AnyEndpointGenerator + 'typetag
Source§impl<'typetag> Serialize for dyn AnyEndpointGenerator + Send + 'typetag
impl<'typetag> Serialize for dyn AnyEndpointGenerator + Send + 'typetag
Source§impl<'typetag> Serialize for dyn AnyEndpointGenerator + Sync + 'typetag
impl<'typetag> Serialize for dyn AnyEndpointGenerator + Sync + 'typetag
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".