-mod safe_type {
- use crate::{
- schema::community::{
- actor_id,
- banner,
- deleted,
- description,
- hidden,
- icon,
- id,
- instance_id,
- local,
- name,
- nsfw,
- posting_restricted_to_mods,
- published,
- removed,
- title,
- updated,
- },
- source::community::Community,
- traits::ToSafe,
- };
-
- type Columns = (
- id,
- name,
- title,
- description,
- removed,
- published,
- updated,
- deleted,
- nsfw,
- actor_id,
- local,
- icon,
- banner,
- hidden,
- posting_restricted_to_mods,
- instance_id,
- );
-
- impl ToSafe for Community {
- type SafeColumns = Columns;
- fn safe_columns_tuple() -> Self::SafeColumns {
- (
- id,
- name,
- title,
- description,
- removed,
- published,
- updated,
- deleted,
- nsfw,
- actor_id,
- local,
- icon,
- banner,
- hidden,
- posting_restricted_to_mods,
- instance_id,
- )
- }
- }
-}
-