SwiftstructGroupActivities

struct GroupActivities.GroupSessionJournal.Attachment

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

inherits{}

Members 9

  1. fieldvar id: Foundation.UUID
  2. fieldweak var ledger: GroupActivities.GroupSessionJournal?
  3. fieldvar source: GroupActivities.GroupSessionJournal.Attachment.AttachmentSource
  4. funcload<A where A: CoreTransferable.Transferable>(A.Type) async throws -> A
  5. funcloadDataFromAttachment(attachmentID: Foundation.UUID) async throws -> Foundation.URL
  6. funcloadMetadata<A where A: Decodable, A: Encodable>(of: A.Type) async throws -> A
  7. funcloadMetadataFromAttachment(attachmentID: Foundation.UUID) async throws -> Foundation.Data
  8. initinit(id: Foundation.UUID, ledger: GroupActivities.GroupSessionJournal?, source: GroupActivities.GroupSessionJournal.Attachment.AttachmentSource) -> GroupActivities.GroupSessionJournal.Attachment
  9. typealiastypealias ID = Foundation.UUID
struct GroupActivities.GroupSessionJournal.Attachment {
    enum AttachmentSource {
        case local(attachmentData: Foundation.URL, developerMetadata: Foundation.Data?)
        case ids(Foundation.Data)
        case plugin

        init(_: GroupActivities.TransportSessionAttachmentSource)
    }
    var id: Foundation.UUID
    weak var ledger: GroupActivities.GroupSessionJournal?
    var source: GroupActivities.GroupSessionJournal.Attachment.AttachmentSource

    init(id: Foundation.UUID, ledger: GroupActivities.GroupSessionJournal?, source: GroupActivities.GroupSessionJournal.Attachment.AttachmentSource)

    func loadDataFromAttachment(attachmentID: Foundation.UUID) async throws -> Foundation.URL
    func loadMetadataFromAttachment(attachmentID: Foundation.UUID) async throws -> Foundation.Data
    func loadMetadata<A>(of: A.Type) async throws -> A where A: Swift.Decodable, A: Swift.Encodable
    func load<A>(_: A.Type) async throws -> A where A: CoreTransferable.Transferable
}