Skip to main content

IntoDetail

Trait IntoDetail 

Source
pub trait IntoDetail<M> {
    // Required method
    fn into_detail(self) -> Detail<M>;
}
Expand description

Converts a column, a layout block of columns, a tuple of either, or a Detail into a Detail.

Every built-in column converts, as does a boxed Arc<dyn Column<M>>; Detail::column appends any other Column. An app’s column type joins a block as the built-in ones do by implementing this trait:

use tablo_core::{Detail, IntoDetail, Section};

impl IntoDetail<User> for Initials {
    fn into_detail(self) -> Detail<User> {
        Detail::empty().column(self)
    }
}

Detail::new(Section::new("User").columns(Initials));

Required Methods§

Source

fn into_detail(self) -> Detail<M>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<M, A, B, C, D, E, F, G, H, I, J, K, L> IntoDetail<M> for (A, B, C, D, E, F, G, H, I, J, K, L)
where A: IntoDetail<M>, B: IntoDetail<M>, C: IntoDetail<M>, D: IntoDetail<M>, E: IntoDetail<M>, F: IntoDetail<M>, G: IntoDetail<M>, H: IntoDetail<M>, I: IntoDetail<M>, J: IntoDetail<M>, K: IntoDetail<M>, L: IntoDetail<M>,

Source§

impl<M, A, B, C, D, E, F, G, H, I, J, K> IntoDetail<M> for (A, B, C, D, E, F, G, H, I, J, K)
where A: IntoDetail<M>, B: IntoDetail<M>, C: IntoDetail<M>, D: IntoDetail<M>, E: IntoDetail<M>, F: IntoDetail<M>, G: IntoDetail<M>, H: IntoDetail<M>, I: IntoDetail<M>, J: IntoDetail<M>, K: IntoDetail<M>,

Source§

impl<M, A, B, C, D, E, F, G, H, I, J> IntoDetail<M> for (A, B, C, D, E, F, G, H, I, J)
where A: IntoDetail<M>, B: IntoDetail<M>, C: IntoDetail<M>, D: IntoDetail<M>, E: IntoDetail<M>, F: IntoDetail<M>, G: IntoDetail<M>, H: IntoDetail<M>, I: IntoDetail<M>, J: IntoDetail<M>,

Source§

impl<M, A, B, C, D, E, F, G, H, I> IntoDetail<M> for (A, B, C, D, E, F, G, H, I)
where A: IntoDetail<M>, B: IntoDetail<M>, C: IntoDetail<M>, D: IntoDetail<M>, E: IntoDetail<M>, F: IntoDetail<M>, G: IntoDetail<M>, H: IntoDetail<M>, I: IntoDetail<M>,

Source§

impl<M, A, B, C, D, E, F, G, H> IntoDetail<M> for (A, B, C, D, E, F, G, H)
where A: IntoDetail<M>, B: IntoDetail<M>, C: IntoDetail<M>, D: IntoDetail<M>, E: IntoDetail<M>, F: IntoDetail<M>, G: IntoDetail<M>, H: IntoDetail<M>,

Source§

impl<M, A, B, C, D, E, F, G> IntoDetail<M> for (A, B, C, D, E, F, G)
where A: IntoDetail<M>, B: IntoDetail<M>, C: IntoDetail<M>, D: IntoDetail<M>, E: IntoDetail<M>, F: IntoDetail<M>, G: IntoDetail<M>,

Source§

impl<M, A, B, C, D, E, F> IntoDetail<M> for (A, B, C, D, E, F)
where A: IntoDetail<M>, B: IntoDetail<M>, C: IntoDetail<M>, D: IntoDetail<M>, E: IntoDetail<M>, F: IntoDetail<M>,

Source§

impl<M, A, B, C, D, E> IntoDetail<M> for (A, B, C, D, E)
where A: IntoDetail<M>, B: IntoDetail<M>, C: IntoDetail<M>, D: IntoDetail<M>, E: IntoDetail<M>,

Source§

impl<M, A, B, C, D> IntoDetail<M> for (A, B, C, D)
where A: IntoDetail<M>, B: IntoDetail<M>, C: IntoDetail<M>, D: IntoDetail<M>,

Source§

impl<M, A, B, C> IntoDetail<M> for (A, B, C)
where A: IntoDetail<M>, B: IntoDetail<M>, C: IntoDetail<M>,

Source§

impl<M, A, B> IntoDetail<M> for (A, B)
where A: IntoDetail<M>, B: IntoDetail<M>,

Source§

impl<M, A> IntoDetail<M> for (A,)
where A: IntoDetail<M>,

Source§

impl<M> IntoDetail<M> for ()

Source§

impl<M> IntoDetail<M> for Arc<dyn Column<M>>

Implementors§

Source§

impl<M, T, P> IntoDetail<M> for FieldColumn<M, T, P>

The detail page column the derive picks.

Source§

impl<M, T> IntoDetail<M> for ColorColumn<M, T>
where ColorColumn<M, T>: Column<M> + 'static,

Source§

impl<M, T> IntoDetail<M> for DateColumn<M, T>
where DateColumn<M, T>: Column<M> + 'static,

Source§

impl<M, T> IntoDetail<M> for EmbeddedColumn<M, T>
where EmbeddedColumn<M, T>: Column<M> + 'static,

Source§

impl<M, T> IntoDetail<M> for IconColumn<M, T>
where IconColumn<M, T>: Column<M> + 'static,

Source§

impl<M, T> IntoDetail<M> for ImageColumn<M, T>
where ImageColumn<M, T>: Column<M> + 'static,

Source§

impl<M, T> IntoDetail<M> for ListColumn<M, T>
where ListColumn<M, T>: Column<M> + 'static,

Source§

impl<M, T> IntoDetail<M> for RepeaterColumn<M, T>
where RepeaterColumn<M, T>: Column<M> + 'static,

Source§

impl<M, T> IntoDetail<M> for RichTextColumn<M, T>
where RichTextColumn<M, T>: Column<M> + 'static,

Source§

impl<M, T> IntoDetail<M> for SelectColumn<M, T>
where SelectColumn<M, T>: Column<M> + 'static,

Source§

impl<M, T> IntoDetail<M> for TextColumn<M, T>
where TextColumn<M, T>: Column<M> + 'static,

Source§

impl<M, T> IntoDetail<M> for TextInputColumn<M, T>
where TextInputColumn<M, T>: Column<M> + 'static,

Source§

impl<M> IntoDetail<M> for BooleanColumn<M>
where BooleanColumn<M>: Column<M> + 'static,

Source§

impl<M> IntoDetail<M> for ComputedColumn<M>
where ComputedColumn<M>: Column<M> + 'static,

Source§

impl<M> IntoDetail<M> for CountColumn<M>
where CountColumn<M>: Column<M> + 'static,

Source§

impl<M> IntoDetail<M> for Detail<M>

Source§

impl<M> IntoDetail<M> for FileColumn<M>
where FileColumn<M>: Column<M> + 'static,

Source§

impl<M> IntoDetail<M> for Grid<()>

Source§

impl<M> IntoDetail<M> for Grid<Detail<M>>

Source§

impl<M> IntoDetail<M> for Group<()>

Source§

impl<M> IntoDetail<M> for Group<Detail<M>>

Source§

impl<M> IntoDetail<M> for RelationColumn<M>
where RelationColumn<M>: Column<M> + 'static,

Source§

impl<M> IntoDetail<M> for Section<()>

Source§

impl<M> IntoDetail<M> for Section<Detail<M>>

Source§

impl<M> IntoDetail<M> for Tabs<Detail<M>>

Source§

impl<M> IntoDetail<M> for ToggleColumn<M>
where ToggleColumn<M>: Column<M> + 'static,