pub fn associate_list(list: List, user: User, is_owner: bool, conn: &PgConnection) -> bool {
        let user_list = NewUserList {
            user_id: user.id,
            list_id: list.list_id,
            is_owner,
        };

        diesel::insert_into(dsl::user_lists)
            .values(&user_list)
            .execute(conn)
            .is_ok()
    }
/// Associates the given list and user in the user_lists table.
Associates the given list and user in the user_lists table.
Associates the given list and user in the user_lists table .
pub fn associate_list(list: List, user: User, is_owner: bool, conn: &PgConnection) -> bool {
        let user_list = NewUserList {
            user_id: user.id,
            list_id: list.list_id,
            is_owner,
        };
        diesel::insert_into(dsl::user_lists)
            .values(&user_list)
            .execute(conn)
            .is_ok()
    }
pub fn associate_list ( list : List , user : User , is_owner : bool , conn : & PgConnection ) -> bool { let user_list = NewUserList { user_id : user . id , list_id : list . list_id , is_owner , } ; diesel :: insert_into ( dsl :: user_lists ) . values ( & user_list ) . execute ( conn ) . is_ok ( ) }
Associates the given list and user in the user_lists table.
Associates the given list and user in the user_lists table .
list
List
user
User
is_owner
bool
conn
&PgConnection
list
List
user
User
is_owner
bool
conn
&PgConnection