pub fn is_list_owner(list_id: i32, user_id: i32, conn: &PgConnection) -> bool {
        let row: QueryResult<UserList> = dsl::user_lists
            .filter(dsl::user_id.eq(&user_id))
            .filter(dsl::list_id.eq(&list_id))
            .get_result::<UserList>(conn);

        match row {
            Ok(user_list) => user_list.is_owner,
            Err(_) => false,
        }
    }
/// Determines whether or not the user with ID `user_id` owns the list with ID `list_id`.
Determines whether or not the user with ID `user_id` owns the list with ID `list_id`.
Determines whether or not the user with ID ` user_id ` owns the list with ID ` list_id ` .
pub fn is_list_owner(list_id: i32, user_id: i32, conn: &PgConnection) -> bool {
        let row: QueryResult<UserList> = dsl::user_lists
            .filter(dsl::user_id.eq(&user_id))
            .filter(dsl::list_id.eq(&list_id))
            .get_result::<UserList>(conn);
        match row {
            Ok(user_list) => user_list.is_owner,
            Err(_) => false,
        }
    }
pub fn is_list_owner ( list_id : i32 , user_id : i32 , conn : & PgConnection ) -> bool { let row : QueryResult < UserList > = dsl :: user_lists . filter ( dsl :: user_id . eq ( & user_id ) ) . filter ( dsl :: list_id . eq ( & list_id ) ) . get_result :: < UserList > ( conn ) ; match row { Ok ( user_list ) => user_list . is_owner , Err ( _ ) => false , } }
Determines whether or not the user with ID `user_id` owns the list with ID `list_id`.
Determines whether or not the user with ID ` user_id ` owns the list with ID ` list_id ` .
list_id
i32
user_id
i32
conn
&PgConnection
list_id
i32
user_id
i32
conn
&PgConnection