SwiftprotocolCookingKit

protocol CookingKit.RecipeUserDataManagerType

Members 13

  1. funcmethod descriptor for allRecipeUserData() async throws -> [CookingKit.RecipeUserData]
  2. funcclearAllHasCooked() async -> ()
  3. funcclearAllNotes() async -> ()
  4. funcclearAllRatings() async -> ()
  5. funcclearAllRecipeUserData() async -> ()
  6. funcclearAllScaling() async -> ()
  7. funcmethod descriptor for recipeUserData(for: String) async -> CookingKit.RecipeUserData?
  8. funcmethod descriptor for recipeUserData(for: [String]) async -> [String : CookingKit.RecipeUserData]
  9. funcresetUnitCustomization() async -> ()
  10. funcsetHasCooked(_: Bool, for: String) -> ()
  11. funcsetRating(_: Int, for: String) -> ()
  12. funcmethod descriptor for transformUserData(for: String, transform: @Sendable (inout CookingKit.RecipeUserData) -> ()) -> ()
  13. varvar updates: any AsyncSequence<Self.Element == CookingKit.RecipeUserData, Self.Failure == Never> { get }
protocol RecipeUserDataManagerType: AnyObject {
    var updates: any Swift.AsyncSequence {
        get
    }

    func recipeUserData(for: Swift.String) async -> CookingKit.RecipeUserData?
    func recipeUserData(for: [Swift.String]) async -> [Swift.String : CookingKit.RecipeUserData]
    func allRecipeUserData() async throws -> [CookingKit.RecipeUserData]
    func transformUserData(for: Swift.String, transform: @escaping @Sendable (_: inout CookingKit.RecipeUserData) -> ())
}
extension CookingKit.RecipeUserDataManagerType {
    func clearAllRecipeUserData() async
    func setHasCooked(_: Swift.Bool, for: Swift.String)
    func clearAllNotes() async
    func clearAllRatings() async
    func clearAllScaling() async
    func clearAllHasCooked() async
    func resetUnitCustomization() async
    func setRating(_: Swift.Int, for: Swift.String)
}