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

NameTypeDescription
changesetId[get] longOSM changeset identifier.
empty[get] boolWhether no metadata component is present.
hasChangeset[get] boolWhether a changeset identifier is present.
hasTimestamp[get] boolWhether a timestamp is present.
hasUserId[get] boolWhether a numeric OSM user identifier is present.
hasUsername[get] boolWhether a username is present.
hasVersion[get] boolWhether an OSM element version is present.
hasVisibility[get] boolWhether visibility/deletion state is explicitly present.
timestampMilliseconds[get] longExact timestamp in milliseconds since the Unix epoch.
userId[get] intNumeric OSM user identifier.
username[get] const(ubyte)[]Borrowed raw username bytes.
versionNumber[get] intOSM element version number.
visible[get] boolOSM visibility value.