MCPcopy Create free account
hub / github.com/dfinity/orbit / mock_user

Function mock_user

core/control-panel/impl/src/models/user.rs:263–274  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

261 use uuid::Uuid;
262
263 pub fn mock_user() -> User {
264 User {
265 id: *Uuid::new_v4().as_bytes(),
266 identity: test_utils::random_principal(),
267 subscription_status: UserSubscriptionStatus::Approved,
268 stations: vec![],
269 deployed_stations: vec![],
270 user_rate_limiter: RateLimiter::new_user(),
271 last_active: 0,
272 last_update_timestamp: 0,
273 }
274 }
275}

Calls 1

random_principalFunction · 0.85