# Struct Presence

> A member's presence as everyone else sees it (`invisible` members look `Offline`).

`zaun_client::Presence` · Struct

```rust
pub struct Presence { … }
```

A member's presence as everyone else sees it (`invisible` members look `Offline`).

## Fields

### `member: MemberId`

The member.

### `status: Status`

`Online`, `Idle`, `Dnd` or `Offline`.

### `activity: Option<Activity>`

What they are doing, if they said.

## Methods

### `activity_line`

```rust
pub fn activity_line(&self) -> Option<String>
```

How clients show the activity: "Playing chess", "Listening to lofi radio", or the
custom text with its emoji.

## Trait implementations

`Clone`, `Debug`, `Eq`, `From<&PresenceSignal>`, `PartialEq`, `StructuralPartialEq`

[Full rustdoc page](/docs/api/rust/zaun-client/zaun_client/presence/struct.Presence.html)
