Struct mx_tester::registration::User
source · [−]pub struct User {
pub admin: bool,
pub localname: String,
pub password: String,
pub rooms: Vec<Room>,
pub rate_limit: RateLimit,
}Fields
admin: boolCreate user as admin?
localname: Stringpassword: StringThe password for this user. If unspecified, we use "password" as password.
rooms: Vec<Room>rate_limit: RateLimitIf specified, override the maximal number of messages per second that this user can send.
Implementations
Create a builder for building User.
On the builder, call .admin(...)(optional), .localname(...), .password(...)(optional), .rooms(...)(optional), .rate_limit(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of User.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for User
impl UnwindSafe for User
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
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