Trait neo4j_testcontainers::Neo4jExt

source ·
pub trait Neo4jExt: Sized {
    // Required method
    fn from_env() -> Neo4j;

    // Provided methods
    fn from_version(version: &str) -> Neo4j { ... }
    fn from_auth_and_version(version: &str, user: &str, pass: &str) -> Neo4j { ... }
    fn uri_ipv4(container: &ContainerAsync<Neo4jImage>) -> String { ... }
    fn uri_ipv6(container: &ContainerAsync<Neo4jImage>) -> String { ... }
}
Expand description

Extension trait for the Neo4j type, adding a Neo4jExt::from_env constructor.

Required Methods§

source

fn from_env() -> Neo4j

Create a new instance of a Neo4j 5 image with the default user and password.

Provided Methods§

source

fn from_version(version: &str) -> Neo4j

👎Deprecated since 0.2.0: Use from_env().with_version() instead.

Create a new instance of a Neo4j image of the given version with the default user and password.

§Panics

If the version is not valid according to the format described in [Self::with_version()].

source

fn from_auth_and_version(version: &str, user: &str, pass: &str) -> Neo4j

👎Deprecated since 0.2.0: Use from_env().with_version().with_user().with_password() instead.

Create a new instance of a Neo4j image with the version and given user and password.

§Panics

If the version is not valid according to the format described in [Self::with_version()].

source

fn uri_ipv4(container: &ContainerAsync<Neo4jImage>) -> String

👎Deprecated since 0.2.0: Use container.image().bolt_uri_ipv4() instead.

Return the connection URI to connect to the Neo4j server via Bolt over IPv4.

source

fn uri_ipv6(container: &ContainerAsync<Neo4jImage>) -> String

👎Deprecated since 0.2.0: Use container.image().bolt_uri_ipv6() instead.

Return the connection URI to connect to the Neo4j server via Bolt over IPv6.

Object Safety§

This trait is not object safe.

Implementors§