pub fn find_complete_list_by_id(id: i32, conn: &PgConnection) -> Option<ListWithItems> {
        if let Some(list) = List::find_list_by_id(id, conn) {
            let items = Item::find_items_for_list(id, conn);

            Some(ListWithItems {
                list_id: list.list_id,
                name: list.name,
                description: list.description,
                date_created: list.date_created,
                items,
            })
        } else {
            None
        }
    }
/// Finds the complete `ListWithItems` for the list with the given `id`, if it exists.
Finds the complete `ListWithItems` for the list with the given `id`, if it exists.
Finds the complete ` ListWithItems ` for the list with the given ` id ` if it exists .
pub fn find_complete_list_by_id(id: i32, conn: &PgConnection) -> Option<ListWithItems> {
        if let Some(list) = List::find_list_by_id(id, conn) {
            let items = Item::find_items_for_list(id, conn);
            Some(ListWithItems {
                list_id: list.list_id,
                name: list.name,
                description: list.description,
                date_created: list.date_created,
                items,
            })
        } else {
            None
        }
    }
pub fn find_complete_list_by_id ( id : i32 , conn : & PgConnection ) -> Option < ListWithItems > { if let Some ( list ) = List :: find_list_by_id ( id , conn ) { let items = Item :: find_items_for_list ( id , conn ) ; Some ( ListWithItems { list_id : list . list_id , name : list . name , description : list . description , date_created : list . date_created , items , } ) } else { None } }
Finds the complete `ListWithItems` for the list with the given `id`, if it exists.
Finds the complete ` ListWithItems ` for the list with the given ` id ` if it exists .
id
i32
conn
&PgConnection
id
i32
conn
&PgConnection