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

Method from_create_input

core/station/impl/src/mappers/user.rs:22–31  ·  view source on GitHub ↗
(new_user_id: UUID, input: AddUserOperationInput)

Source from the content-addressed store, hash-verified

20
21impl UserMapper {
22 pub fn from_create_input(new_user_id: UUID, input: AddUserOperationInput) -> User {
23 User {
24 id: new_user_id,
25 identities: input.identities,
26 groups: input.groups,
27 name: input.name,
28 status: input.status,
29 last_modification_timestamp: next_time(),
30 }
31 }
32}
33
34impl From<User> for UserDTO {

Callers

nothing calls this directly

Calls 1

next_timeFunction · 0.50

Tested by

no test coverage detected