File
Holds information about the file.
Fields
id
The unique identifier for the file. This property returns the `fileId` from the `info` property of the file, converted to a `String`.
public var id: String
Static Methods
==(::)
Compares two File
instances for equality.
This function compares several key properties of the two File
instances, including info
, privateMeta
, publicMeta
, authorPubKey
, size
, and statusCode
.
public static func == (
lhs: privmx.endpoint.store.File,
rhs: privmx.endpoint.store.File
) -> Bool
Name | Type | Description |
---|---|---|
lhs | privmx.endpoint.store.File | The left-hand side `File` instance. |
rhs | privmx.endpoint.store.File | The right-hand side `File` instance. |
Type | Description |
---|---|
Bool | `true` if all relevant fields of both files are equal, otherwise `false`. |
Methods
hash(into:)
Generates a hash value for the File
instance.
This function combines the info
property into the hash to uniquely identify the file.
public func hash(into hasher: inout Hasher) -> Void
Name | Type | Description |
---|---|---|
hasher | inout Hasher | The `Hasher` instance used to compute the hash value. |