2024-04-16 15:03:10 +02:00
|
|
|
@0xc0542f62613a5c5e;
|
2024-03-30 19:20:42 +01:00
|
|
|
|
|
|
|
using CSharp = import "programming_language/csharp.capnp";
|
2024-05-06 13:15:58 +02:00
|
|
|
$CSharp.namespace("FabAccessAPI.Schema");
|
|
|
|
|
|
|
|
using OID = import "utils.capnp".OID;
|
2024-03-30 19:20:42 +01:00
|
|
|
|
2024-04-16 14:37:41 +02:00
|
|
|
interface TraitSuper {
|
|
|
|
getName @0 () -> ( name :Text );
|
2024-03-30 19:20:42 +01:00
|
|
|
}
|
|
|
|
|
2024-04-16 14:37:41 +02:00
|
|
|
struct TraitError(ConstraintError) {
|
|
|
|
union {
|
|
|
|
permissionFailed @0 :Void;
|
2024-04-16 15:03:10 +02:00
|
|
|
constraintViolation @1 :ConstraintError;
|
2024-04-16 14:37:41 +02:00
|
|
|
}
|
2024-03-30 19:20:42 +01:00
|
|
|
}
|
2024-05-06 13:15:58 +02:00
|
|
|
|
|
|
|
interface Hint {
|
|
|
|
getOid @0 () -> ( oid :OID );
|
|
|
|
getAbstract @1 () -> ( abstract :List(Hint) );
|
|
|
|
# Sorted least to most abstract. abstract[0] is the next less specific Hint.
|
|
|
|
}
|