ReadTarget

public struct ReadTarget<T> where T : CorvusModel

Describes the target of a read operation, either all objects, only existing objects, or only trashed (soft-deleted) objects.

  • all

    Initializes a ReadTarget with the .all option.

    Declaration

    Swift

    public static var all: ReadTarget<T> { get }
  • Initializes a ReadTarget with the .existing option.

    Declaration

    Swift

    public static var existing: ReadTarget<T> { get }
  • Initializes a ReadTarget with the .trashed option.

    Declaration

    Swift

    public static var trashed: ReadTarget<T> { get }