MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / read_verification_scope

Method read_verification_scope

atomic-core/src/operation/codec.rs:1404–1414  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

1402 }
1403
1404 fn read_verification_scope(&mut self) -> Result<VerificationScope, OperationCodecError> {
1405 match self.read_u8()? {
1406 0 => Ok(VerificationScope::Filesystem),
1407 1 => Ok(VerificationScope::Git),
1408 2 => Ok(VerificationScope::Repository),
1409 3 => Ok(VerificationScope::Complete),
1410 tag => Err(OperationCodecError::new(format!(
1411 "unsupported verification scope tag {tag}"
1412 ))),
1413 }
1414 }
1415
1416 fn read_optional_effect_value(&mut self) -> Result<Option<EffectValue>, OperationCodecError> {
1417 if self.read_optional_tag("effect value")? {

Callers 1

read_effect_targetMethod · 0.80

Calls 1

read_u8Method · 0.80

Tested by

no test coverage detected