# Struct client::owner::HostInfo

> What an owner needs about a host to delegate to it.

`zaun_community_protocol::client::owner::HostInfo` · Struct

```rust
pub struct HostInfo { … }
```

What an owner needs about a host to delegate to it.

## Fields

### `public_key: PublicKey`

The host key.

### `addresses: Vec<String>`

1–4 SimpleX contact addresses of the host.

## Methods

### `new`

```rust
pub const fn new(public_key: PublicKey, addresses: Vec<String>) -> Self
```

Wraps a host key and addresses known to be authentic.

### `from_advertised`

```rust
pub fn from_advertised(host_id: HostId, public_key: PublicKey, addresses: Vec<String>) -> Result<Self, BuildError>
```

From the host's advertised `HostId`, key and addresses: the key must derive the id.

# Errors
`BuildError::HostId` when it does not.

### `host_id`

```rust
pub fn host_id(&self) -> HostId
```

The host's id.

## Trait implementations

`Clone`, `Debug`, `Eq`, `PartialEq`, `StructuralPartialEq`

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/client/owner/struct.HostInfo.html)
