pub struct MetadataFieldReport {
pub field: String,
pub key: String,
pub path: Vec<String>,
pub exists: bool,
pub conflict: Option<NonTextFieldType>,
pub outcome: FieldOutcome,
}Expand description
One projected metadata text field’s plan, or its verified outcome.
The setup creates a missing one as a text field and never alters a field that is there:
a same-named field of another type is reported in conflict and left as it is.
Fields§
§field: StringThe board field’s name.
key: StringThe metadata key the value is read from.
path: Vec<String>The object keys walked inside that key’s value; empty for the key’s own value.
exists: boolWhether the board had a text field of that name before the operation.
conflict: Option<NonTextFieldType>The type of a field of that name that is not a text field, which the setup leaves as it is; absent — and left out of the JSON — when there is none.
outcome: FieldOutcomeWhat the requested operation did: planned; created for a field that was not
there; unchanged for one that was, and for a conflict, which is never changed.
Trait Implementations§
Source§impl Clone for MetadataFieldReport
impl Clone for MetadataFieldReport
Source§impl Debug for MetadataFieldReport
impl Debug for MetadataFieldReport
impl Eq for MetadataFieldReport
Source§impl JsonSchema for MetadataFieldReport
impl JsonSchema for MetadataFieldReport
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for MetadataFieldReport
impl PartialEq for MetadataFieldReport
Source§impl Serialize for MetadataFieldReport
impl Serialize for MetadataFieldReport
impl StructuralPartialEq for MetadataFieldReport
Auto Trait Implementations§
impl Freeze for MetadataFieldReport
impl RefUnwindSafe for MetadataFieldReport
impl Send for MetadataFieldReport
impl Sync for MetadataFieldReport
impl Unpin for MetadataFieldReport
impl UnsafeUnpin for MetadataFieldReport
impl UnwindSafe for MetadataFieldReport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more