bws::render

Trait TableSerialize

Source
pub(crate) trait TableSerialize<const N: usize>: Sized {
    // Required methods
    fn get_headers() -> [&'static str; N];
    fn get_values(&self) -> Vec<[String; N]>;
}

Required Methods§

Source

fn get_headers() -> [&'static str; N]

Source

fn get_values(&self) -> Vec<[String; N]>

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.

Implementations on Foreign Types§

Source§

impl TableSerialize<3> for ProjectResponse

Source§

fn get_headers() -> [&'static str; 3]

Source§

fn get_values(&self) -> Vec<[String; 3]>

Source§

impl TableSerialize<4> for SecretResponse

Source§

fn get_headers() -> [&'static str; 4]

Source§

fn get_values(&self) -> Vec<[String; 4]>

Source§

impl<T: TableSerialize<N>, const N: usize> TableSerialize<N> for Vec<T>

Source§

fn get_headers() -> [&'static str; N]

Source§

fn get_values(&self) -> Vec<[String; N]>

Implementors§