Struct mx_tester::DockerConfig[][src]

pub struct DockerConfig {
    pub hostname: String,
    pub port_mapping: Vec<PortMapping>,
}
Expand description

Docker-specific configuration to use in the test.

Fields

hostname: String

The hostname to give the synapse container on the docker network, if the docker network has been provided. Defaults to synapse but will not be used unless a network is provided in network.

port_mapping: Vec<PortMapping>

The docker port mapping configuration to use for the synapse container.

Implementations

Create a builder for building DockerConfig. On the builder, call .hostname(...)(optional), .port_mapping(...)(optional) to set the values of the fields. Finally, call .build() to create the instance of DockerConfig.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more