pub enum DeviceCodeOwnership {
ClientId(String),
FieldEquals {
field: String,
value: FieldValue,
},
FieldIn {
field: String,
values: Vec<FieldValue>,
},
FieldNotIn {
field: String,
values: Vec<FieldValue>,
},
Where(DeviceCodeWhere),
}Expand description
Issuer ownership required by atomic device-code consumption.
Variants§
ClientId(String)
Require the stored client binding to equal this client identifier.
FieldEquals
Match native scope or a declared string, number, or boolean field.
String fields may reference id; other references are not supported.
This condition uses eq, AND, and case-sensitive comparison.
Other connectors and field types are not supported by this variant.
Fields
value: FieldValueScalar null, string, number, or boolean query value.
FieldIn
Require membership in a candidate set with AND and case-sensitive comparison.
Fields
field: StringNative scope, or a registered string or number field.
String fields may reference id and use the configured ID policy.
Configured storage field names are accepted.
values: Vec<FieldValue>Null, string, or number candidates. An empty set does not match in Memory or SQLite and produces a PostgreSQL or MySQL syntax error.
FieldNotIn
Exclude a candidate set with AND and the selected adapter’s null semantics.
Fields
field: StringNative scope, or a registered string or number field.
String fields may reference id and use the configured ID policy.
Configured storage field names are accepted.
values: Vec<FieldValue>Null, string, or number candidates. An empty set matches in Memory or SQLite and produces a PostgreSQL or MySQL syntax error.
Where(DeviceCodeWhere)
Apply a typed AND condition while retaining the selected code and owner bindings.
Trait Implementations§
Source§impl Clone for DeviceCodeOwnership
impl Clone for DeviceCodeOwnership
Source§fn clone(&self) -> DeviceCodeOwnership
fn clone(&self) -> DeviceCodeOwnership
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more