SwiftstructGroupActivities
struct GroupActivities.GroupSessionJournal.Attachment
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwift.Identifiable
Members 9
- field
var id: Foundation.UUID - field
weak var ledger: GroupActivities.GroupSessionJournal? - field
var source: GroupActivities.GroupSessionJournal.Attachment.AttachmentSource - func
load<A where A: CoreTransferable.Transferable>(A.Type) async throws -> A - func
loadDataFromAttachment(attachmentID: Foundation.UUID) async throws -> Foundation.URL - func
loadMetadata<A where A: Decodable, A: Encodable>(of: A.Type) async throws -> A - func
loadMetadataFromAttachment(attachmentID: Foundation.UUID) async throws -> Foundation.Data - init
init(id: Foundation.UUID, ledger: GroupActivities.GroupSessionJournal?, source: GroupActivities.GroupSessionJournal.Attachment.AttachmentSource) -> GroupActivities.GroupSessionJournal.Attachment - typealias
typealias ID = Foundation.UUID
Header
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 }