# Guid

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-splat/application_performance_monitoring/struct-guid/

**struct** · [`ferroui-splat`](/docs/0.5.0/api/ferroui-splat/) · v0.5.0

```rust
struct Guid
```

A 128-bit identifier (`System.Guid`), written as `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`.

Deprecated: the feature usage tracking takes and returns a `Uuid` of the `uuid` crate, the
identifier type of the workspace (docs/idiomatic-rust.md); the two convert into each other
with `From`. `Guid::EMPTY` is `Uuid::nil`, `Guid::new_guid` is `Uuid::new_v4`,
`Guid::from_u128` and `Guid::as_u128` are the methods of the same names, and the text is
the same.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/application_performance_monitoring/guid.rs#L19)

> **Deprecated since 0.5.0.** use `uuid::Uuid`: `EMPTY` is `Uuid::nil()`, `new_guid()` is `Uuid::new_v4()`; convert with `Uuid::from(guid)`

## Members

- [`EMPTY`](#assoc_const-empty)
- [`new_guid`](#function-new_guid)
- [`from_u128`](#function-from_u128)
- [`as_u128`](#function-as_u128)

<a id="assoc_const-empty"></a>

### EMPTY

```rust
const EMPTY: Guid
```

The identifier whose bits are all zero (`Guid.Empty`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/application_performance_monitoring/guid.rs#L24)

<a id="function-new_guid"></a>

### new_guid

```rust
fn new_guid() -> Self
```

A new random identifier of version 4 (`Guid.NewGuid`), from the random generator of the
system.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/application_performance_monitoring/guid.rs#L28)

<a id="function-from_u128"></a>

### from_u128

```rust
const fn from_u128(value: u128) -> Self
```

The identifier of the 128 bits `value`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/application_performance_monitoring/guid.rs#L33)

<a id="function-as_u128"></a>

### as_u128

```rust
const fn as_u128(self: &Self) -> u128
```

The 128 bits of the identifier.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Splat/application_performance_monitoring/guid.rs#L38)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ToString`
- `Clone`
- `Copy`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- `PartialOrd`
- `Ord`
- `From<Uuid>`
- `From<Guid>`
- `Display`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
