pub struct S2Lite { /* private fields */ }Expand description
Running s2-lite Testcontainers instance.
Implementations§
Source§impl S2Lite
impl S2Lite
Sourcepub async fn start_with(tag: impl Into<String>) -> Result<Self>
pub async fn start_with(tag: impl Into<String>) -> Result<Self>
Start s2-lite with a specific image tag.
Sourcepub fn config(&self, access_token: impl Into<String>) -> Result<S2Config>
pub fn config(&self, access_token: impl Into<String>) -> Result<S2Config>
Build an S2Config for this s2-lite instance with the provided access token.
Sourcepub fn container(&self) -> &ContainerAsync<GenericImage>
pub fn container(&self) -> &ContainerAsync<GenericImage>
Return the underlying Testcontainers container.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for S2Lite
impl !RefUnwindSafe for S2Lite
impl !UnwindSafe for S2Lite
impl Send for S2Lite
impl Sync for S2Lite
impl Unpin for S2Lite
impl UnsafeUnpin for S2Lite
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request