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

Method validate

core/station/impl/src/models/address_book.rs:109–117  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

107
108impl ModelValidator<AddressBookError> for AddressBookEntry {
109 fn validate(&self) -> ModelValidatorResult<AddressBookError> {
110 validate_address_owner(&self.address_owner)?;
111 validate_address(&self.address)?;
112 validate_labels(&self.labels)?;
113
114 self.metadata.validate()?;
115
116 Ok(())
117 }
118}
119
120impl AddressBookEntry {

Callers 6

fail_address_too_shortFunction · 0.45
fail_address_too_longFunction · 0.45
fail_label_too_longFunction · 0.45

Calls 3

validate_address_ownerFunction · 0.85
validate_addressFunction · 0.85
validate_labelsFunction · 0.70

Tested by 6

fail_address_too_shortFunction · 0.36
fail_address_too_longFunction · 0.36
fail_label_too_longFunction · 0.36