StorageListResult

public struct StorageListResult : Sendable

Represents the output of a call to StorageCategoryBehavior.list

  • Tag: StorageListResult
  • This is meant to be called by plugins implementing StorageCategoryBehavior.list.

    • Tag: StorageListResult.init

    Declaration

    Swift

    public init(
        items: [Item],
        excludedSubpaths: [String] = [],
        nextToken: String? = nil
    )
  • Array of Items in the Result

    • Tag: StorageListResult.items

    Declaration

    Swift

    public var items: [Item]
  • Array of excluded subpaths in the Result. This field is only populated when StorageListRequest.Options.subpathStrategy is set to .exclude().

    • Tag: StorageListResult.excludedSubpaths

    Declaration

    Swift

    public var excludedSubpaths: [String]
  • Opaque string indicating the page offset at which to resume a listing. This value is usually copied to StorageListRequestOptions.nextToken.

    • Tag: StorageListResult.nextToken

    Declaration

    Swift

    public let nextToken: String?
    • Tag: StorageListResultItem

    Note

    @unchecked Sendable rather than Sendable: pluginResults is Any?, which cannot be checked. Narrowing that type would be source-breaking for plugins that pass results through, so the guarantee is left to whatever is put in it.
    See more

    Declaration

    Swift

    struct Item : @unchecked Sendable