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.subpathStrategyis 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.
See also
Tag: StorageListResult.nextToken
Declaration
Swift
public let nextToken: String? -
- Tag: StorageListResultItem
See moreNote
@unchecked Sendablerather thanSendable:pluginResultsisAny?, 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.Declaration
Swift
struct Item : @unchecked Sendable
View on GitHub