pub fn check_entry_type(entry_type: &EntryType, entry: &Entry) -> SysValidationResult<()> {
    match (entry_type, entry) {
        (EntryType::AgentPubKey, Entry::Agent(_)) => Ok(()),
        (EntryType::App(_), Entry::App(_)) => Ok(()),
        (EntryType::CapClaim, Entry::CapClaim(_)) => Ok(()),
        (EntryType::CapGrant, Entry::CapGrant(_)) => Ok(()),
        _ => Err(ValidationOutcome::EntryType.into()),
    }
}
/// Check the entry variant matches the variant in the headers entry type
Check the entry variant matches the variant in the headers entry type
Check the entry variant matches the variant in the headers entry type
pub fn check_entry_type(entry_type: &EntryType, entry: &Entry) -> SysValidationResult<()> {
    match (entry_type, entry) {
        (EntryType::AgentPubKey, Entry::Agent(_)) => Ok(()),
        (EntryType::App(_), Entry::App(_)) => Ok(()),
        (EntryType::CapClaim, Entry::CapClaim(_)) => Ok(()),
        (EntryType::CapGrant, Entry::CapGrant(_)) => Ok(()),
        _ => Err(ValidationOutcome::EntryType.into()),
    }
}
pub fn check_entry_type ( entry_type : & EntryType , entry : & Entry ) -> SysValidationResult < ( ) > { match ( entry_type , entry ) { ( EntryType :: AgentPubKey , Entry :: Agent ( _ ) ) => Ok ( ( ) ) , ( EntryType :: App ( _ ) , Entry :: App ( _ ) ) => Ok ( ( ) ) , ( EntryType :: CapClaim , Entry :: CapClaim ( _ ) ) => Ok ( ( ) ) , ( EntryType :: CapGrant , Entry :: CapGrant ( _ ) ) => Ok ( ( ) ) , _ => Err ( ValidationOutcome :: EntryType . into ( ) ) , } }
Check the entry variant matches the variant in the headers entry type
Check the entry variant matches the variant in the headers entry type
entry_type
&EntryType
entry
&Entry
entry_type
&EntryType
entry
&Entry