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§
Provided Methods§
sourcefn from_version(version: &str) -> Neo4j
👎Deprecated since 0.2.0: Use from_env().with_version()
instead.
fn from_version(version: &str) -> Neo4j
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()
].
sourcefn 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.
fn from_auth_and_version(version: &str, user: &str, pass: &str) -> Neo4j
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()
].
sourcefn uri_ipv4(container: &ContainerAsync<Neo4jImage>) -> String
👎Deprecated since 0.2.0: Use container.image().bolt_uri_ipv4()
instead.
fn uri_ipv4(container: &ContainerAsync<Neo4jImage>) -> String
container.image().bolt_uri_ipv4()
instead.Return the connection URI to connect to the Neo4j server via Bolt over IPv4.
sourcefn uri_ipv6(container: &ContainerAsync<Neo4jImage>) -> String
👎Deprecated since 0.2.0: Use container.image().bolt_uri_ipv6()
instead.
fn uri_ipv6(container: &ContainerAsync<Neo4jImage>) -> String
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.