pub trait Endpoint: Sized + Clone {
// Required methods
fn new(
url: impl Into<String>,
token: impl Into<String>,
path: impl Into<String>,
) -> Self
where Self: Sized;
fn endpoint(&self) -> String;
}Required Methods§
fn new(
url: impl Into<String>,
token: impl Into<String>,
path: impl Into<String>,
) -> Selfwhere
Self: Sized,
fn endpoint(&self) -> String
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.