Skip to main content

Endpoint

Trait Endpoint 

Source
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§

Source

fn new( url: impl Into<String>, token: impl Into<String>, path: impl Into<String>, ) -> Self
where Self: Sized,

Source

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.

Implementors§