# pyo3::types::PyTimeAccess - Rust
Trait for accessing the time components of a struct containing a time.
Keywords: rust, rustlang, rust-lang, PyTimeAccess

# Trait pyo3::types::PyTimeAccess [−] [src]

    pub trait PyTimeAccess {
        fn get_hour(&self) -> u8;
        fn get_minute(&self) -> u8;
        fn get_second(&self) -> u8;
        fn get_microsecond(&self) -> u32;
        fn get_fold(&self) -> u8;
    }

Trait for accessing the time components of a struct containing a time.

## Required methods

### `fn get_hour(&self) -> u8` [src]

### `fn get_minute(&self) -> u8` [src]

### `fn get_second(&self) -> u8` [src]

### `fn get_microsecond(&self) -> u32` [src]

### `fn get_fold(&self) -> u8` [src]

Loading content...

## Implementors

### `impl PyTimeAccess for PyDateTime` [src]

#### `fn get_hour(&self) -> u8` [src]

#### `fn get_minute(&self) -> u8` [src]

#### `fn get_second(&self) -> u8` [src]

#### `fn get_microsecond(&self) -> u32` [src]

#### `fn get_fold(&self) -> u8` [src]

### `impl PyTimeAccess for PyTime` [src]

#### `fn get_hour(&self) -> u8` [src]

#### `fn get_minute(&self) -> u8` [src]

#### `fn get_second(&self) -> u8` [src]

#### `fn get_microsecond(&self) -> u32` [src]

#### `fn get_fold(&self) -> u8` [src]

Loading content...