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

Method validate

core/station/impl/src/models/user.rs:128–134  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

126
127impl ModelValidator<UserError> for User {
128 fn validate(&self) -> ModelValidatorResult<UserError> {
129 validate_identities(&self.identities)?;
130 validate_groups(&self.groups)?;
131 validate_name(&self.name)?;
132
133 Ok(())
134 }
135}
136
137#[cfg(test)]

Callers 15

createMethod · 0.45
createMethod · 0.45
createMethod · 0.45
editMethod · 0.45
mark_readMethod · 0.45
create_with_idMethod · 0.45
editMethod · 0.45
edit_request_policyMethod · 0.45
create_accountMethod · 0.45
edit_accountMethod · 0.45
create_requestMethod · 0.45

Calls 3

validate_identitiesFunction · 0.85
validate_groupsFunction · 0.85
validate_nameFunction · 0.70

Tested by

no test coverage detected