pub fn owned_by_list(item_id: i32, list_id: i32, conn: &PgConnection) -> bool {
        let possible_item = dsl::items.filter(dsl::item_id.eq(item_id)).get_result::<Item>(conn);

        if let Ok(item) = possible_item {
            item.list_id == list_id
        } else {
            false
        }
    }
/// Determines whether or not the given item is contained in the given list.
Determines whether or not the given item is contained in the given list.
Determines whether or not the given item is contained in the given list .
pub fn owned_by_list(item_id: i32, list_id: i32, conn: &PgConnection) -> bool {
        let possible_item = dsl::items.filter(dsl::item_id.eq(item_id)).get_result::<Item>(conn);
        if let Ok(item) = possible_item {
            item.list_id == list_id
        } else {
            false
        }
    }
pub fn owned_by_list ( item_id : i32 , list_id : i32 , conn : & PgConnection ) -> bool { let possible_item = dsl :: items . filter ( dsl :: item_id . eq ( item_id ) ) . get_result :: < Item > ( conn ) ; if let Ok ( item ) = possible_item { item . list_id == list_id } else { false } }
Determines whether or not the given item is contained in the given list.
Determines whether or not the given item is contained in the given list .
item_id
i32
list_id
i32
conn
&PgConnection
item_id
i32
list_id
i32
conn
&PgConnection