# Struct ethkey::Secret [−] [src]

    pub struct Secret { /* fields omitted */ }

## Methods

### `impl Secret`
[src]

#### `fn from_slice(key: &[u8]) -> Result<Self, Error>`

## Methods from Deref<Target=H256>

#### `fn hex(&self) -> String`

Get a hex representation.

## Trait Implementations

### `impl Clone for Secret`
[src]

#### `fn clone(&self) -> Secret`

Returns a copy of the value. Read more

#### `fn clone_from(&mut self, source: &Self)`
1.0.0

Performs copy-assignment from `source`. Read more

### `impl PartialEq for Secret`
[src]

#### `fn eq(&self, __arg_0: &Secret) -> bool`

This method tests for `self` and `other` values to be equal, and is used by `==`. Read more

#### `fn ne(&self, __arg_0: &Secret) -> bool`

This method tests for `!=`.

### `impl Eq for Secret`
[src]

### `impl Debug for Secret`
[src]

#### `fn fmt(&self, fmt: &mut Formatter) -> Result`

Formats the value using the given formatter.

### `impl FromStr for Secret`
[src]

#### `type Err = Error`

The associated error which can be returned from parsing.

#### `fn from_str(s: &str) -> Result<Self, Self::Err>`

Parses a string `s` to return a value of this type. Read more

### `impl From<SecretKey> for Secret`
[src]

#### `fn from(key: SecretKey) -> Self`

Performs the conversion.

### `impl Deref for Secret`
[src]

#### `type Target = H256`

The resulting type after dereferencing

#### `fn deref(&self) -> &Self::Target`

The method called to dereference a value

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)