pub struct MemoryEntry {
pub actor: Option<String>,
pub glossary_version: Option<String>,
pub source: Option<String>,
pub state: Option<String>,
pub target: Option<String>,
pub text: Option<String>,
pub tier: Option<String>,
pub updated_at: Option<i32>,
}Fields§
§actor: Option<String>Actor is the validated user id that last wrote this entry by hand. Empty on an entry an engine produced, and on one written before attribution existed.
glossary_version: Option<String>Glossary is the glossary VERSION the entry was translated under — the digest version() derives from the terms, so changing a term changes the key and the stale rendering can never be served.
source: Option<String>Source is the ORIGINAL string this entry translates. Part of the identity.
state: Option<String>State is the entry’s position on the review ladder: machine, suggested, approved or published.
target: Option<String>Target is the target language tag (BCP-47, e.g. "es" or "pt-BR"). Part of the identity.
text: Option<String>Text is the stored translation. A memory hit returns it verbatim, which is the idempotence contract.
tier: Option<String>Tier is the engine tier the entry belongs to, quality or bulk. Part of the identity: the two tiers keep separate renderings of the same source.
updated_at: Option<i32>UpdatedAt is the unix second the entry last changed.
Implementations§
Source§impl MemoryEntry
impl MemoryEntry
pub fn new() -> MemoryEntry
Trait Implementations§
Source§impl Clone for MemoryEntry
impl Clone for MemoryEntry
Source§fn clone(&self) -> MemoryEntry
fn clone(&self) -> MemoryEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more