Struct MetadataView
Borrowed semantic metadata for one OSM element.
struct MetadataView;
Presence is explicit because every metadata component is optional in the source model. User ID and username remain independently optional: a decoder must not invent one merely because the other is present.
Properties
| Name | Type | Description |
|---|---|---|
changesetId[get]
|
long | OSM changeset identifier. |
empty[get]
|
bool | Whether no metadata component is present. |
hasChangeset[get]
|
bool | Whether a changeset identifier is present. |
hasTimestamp[get]
|
bool | Whether a timestamp is present. |
hasUserId[get]
|
bool | Whether a numeric OSM user identifier is present. |
hasUsername[get]
|
bool | Whether a username is present. |
hasVersion[get]
|
bool | Whether an OSM element version is present. |
hasVisibility[get]
|
bool | Whether visibility/deletion state is explicitly present. |
timestampMilliseconds[get]
|
long | Exact timestamp in milliseconds since the Unix epoch. |
userId[get]
|
int | Numeric OSM user identifier. |
username[get]
|
const(ubyte)[] | Borrowed raw username bytes. |
versionNumber[get]
|
int | OSM element version number. |
visible[get]
|
bool | OSM visibility value. |