SwiftstructAgentCanvasUICore

struct AgentCanvasUICore.PasteboardRepresentation.Text

Structure

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

Members 8

  1. fieldvar _attributedString: AgentCanvasUICore.MainActorIsolated<NSAttributedString?>+0x18
  2. fieldlet kinds: Set<AgentCanvasUICore.PasteboardRepresentation.Text.Kind>+0x0
  3. fieldvar string: String?+0x8
  4. funcdata(forPasteboardType: AgentCanvasUICore.PasteboardType) async throws -> Foundation.Data
  5. funcmainActorData(forPasteboardType: AgentCanvasUICore.PasteboardType) throws -> Foundation.Data
  6. initinit(attributedString: NSAttributedString, string: String?) -> AgentCanvasUICore.PasteboardRepresentation.Text
  7. initinit(string: String) -> AgentCanvasUICore.PasteboardRepresentation.Text
  8. varvar supportedPasteboardTypes: Set<AgentCanvasUICore.PasteboardType> { get }
struct AgentCanvasUICore.PasteboardRepresentation.Text {
    enum Kind {
        case plainText
        case richTextFormat

        var description: Swift.String {
            get
        }
    }
    enum Error {
        case unsupportedPasteboardType
        case failedToProduceData
    }
    let kinds: Swift.Set<AgentCanvasUICore.PasteboardRepresentation.Text.Kind>
    var string: Swift.String?
    // synthesized from the backing storage `_attributedString`; the property's own accessors are stripped
    @AgentCanvasUICore.MainActorIsolated var attributedString: __C.NSAttributedString? {
        get
        set
    }

    init(attributedString: __C.NSAttributedString, string: Swift.String?)
    init(string: Swift.String)

    var supportedPasteboardTypes: Swift.Set<AgentCanvasUICore.PasteboardType> {
        get
    }

    func mainActorData(forPasteboardType: AgentCanvasUICore.PasteboardType) throws -> Foundation.Data
    func data(forPasteboardType: AgentCanvasUICore.PasteboardType) async throws -> Foundation.Data
}