pub struct Neo4jContainer { /* private fields */ }Expand description
A single-node Neo4j Community container.
Implementations§
Source§impl Neo4jContainer
impl Neo4jContainer
Sourcepub fn with_image(image: &str) -> Self
pub fn with_image(image: &str) -> Self
Builds a container from a caller-chosen image.
Sourcepub fn with_password(self, password: &str) -> Self
pub fn with_password(self, password: &str) -> Self
Overrides NEO4J_AUTH’s password half (default rightsize-test; the image
requires at least 8 characters).
Sourcepub async fn start(self) -> Result<Neo4jGuard>
pub async fn start(self) -> Result<Neo4jGuard>
Boots the container.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Neo4jContainer
impl !UnwindSafe for Neo4jContainer
impl Freeze for Neo4jContainer
impl Send for Neo4jContainer
impl Sync for Neo4jContainer
impl Unpin for Neo4jContainer
impl UnsafeUnpin for Neo4jContainer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more