accounts via id also, not just real account

This commit is contained in:
Priec
2026-09-15 13:02:26 +02:00
parent 891bcaa11d
commit 651f488312
8 changed files with 40 additions and 3 deletions

View File

@@ -113,6 +113,8 @@ pub struct TableDataImportRow {
/// retain the normal table-write link semantics.
#[prost(string, repeated, tag = "2")]
pub link_display_columns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(enumeration = "ImportAccountMatch", tag = "3")]
pub account_match: i32,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct StageTableDataImportResponse {
@@ -494,6 +496,32 @@ pub struct GetTableDataByPositionRequest {
#[prost(enumeration = "RowNavigationMode", tag = "5")]
pub navigation_mode: i32,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ImportAccountMatch {
Path = 0,
Id = 1,
}
impl ImportAccountMatch {
/// String value of the enum field names used in the ProtoBuf definition.
///
/// The values are not transformed in any way and thus are considered stable
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Path => "IMPORT_ACCOUNT_MATCH_PATH",
Self::Id => "IMPORT_ACCOUNT_MATCH_ID",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"IMPORT_ACCOUNT_MATCH_PATH" => Some(Self::Path),
"IMPORT_ACCOUNT_MATCH_ID" => Some(Self::Id),
_ => None,
}
}
}
/// A link resolved exactly as the source row stored it, together with the
/// target row's current state. The physical companion version column remains
/// an internal implementation detail.