<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Swift",
  "identifier" : "/documentation/Distributed/RemoteCallTarget",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Distributed"
    ],
    "preciseIdentifier" : "s:11Distributed16RemoteCallTargetV"
  },
  "title" : "RemoteCallTarget"
}
-->

# RemoteCallTarget

Represents a ‘target’ of a distributed call, such as a `distributed func` or
`distributed` computed property. Identification schemes may vary between
systems, and are subject to evolution.

```
struct RemoteCallTarget
```

## Overview

Actor systems generally should treat the `identifier` as an opaque string,
and pass it along to the remote system for in their `remoteCall`
implementation. Alternative approaches are possible, where the identifiers
are either compressed, cached, or represented in other ways, as long as the
recipient system is able to determine which target was intended to be
invoked.

The string representation will attempt to pretty print the target identifier,
however its exact format is not specified and may change in future versions.

## Topics

### Initializers

[`init(String)`](/documentation/Distributed/RemoteCallTarget/init(_:))

### Instance Properties

[`var description: String`](/documentation/Distributed/RemoteCallTarget/description)

Attempts to pretty format the underlying target identifier.
If unable to, returns the raw underlying identifier.

[`var identifier: String`](/documentation/Distributed/RemoteCallTarget/identifier)

The underlying identifier of the target, returned as-is.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)