Struct feattle_sync::S3[][src]

pub struct S3 { /* fields omitted */ }

Persist the data in an AWS S3 bucket.

To use it, make sure to activate the cargo feature "s3" in your Cargo.toml.

Example

use feattle_core::{feattles, Feattles};
use feattle_sync::S3;
use rusoto_s3::S3Client;
use rusoto_core::Region;

feattles! {
    struct MyToggles {
        a: bool,
    }
}

// Create a S3 client, read more at the official documentation https://www.rusoto.org
let s3_client = S3Client::new(Region::default());

let persistence = S3::new(s3_client, "my-bucket".to_owned(), "some/s3/prefix/".to_owned());
let my_toggles = MyToggles::new(persistence);

Implementations

impl S3[src]

pub fn new(client: S3Client, bucket: String, prefix: String) -> Self[src]

Trait Implementations

impl Clone for S3[src]

impl Debug for S3[src]

impl Persist for S3[src]

type Error = S3Error

Auto Trait Implementations

impl !RefUnwindSafe for S3

impl Send for S3

impl Sync for S3

impl Unpin for S3

impl !UnwindSafe for S3

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.