pub struct CategorizationRequest {
pub payee: Option<String>,
pub narration: String,
pub amount: Option<String>,
pub currency: Option<String>,
pub date: String,
pub known_accounts: Vec<String>,
}Expand description
A request to categorize a transaction via LLM.
Fields§
§payee: Option<String>The payee (if available).
narration: StringThe narration/description.
amount: Option<String>The amount (as a string).
currency: Option<String>The currency.
date: StringThe date.
known_accounts: Vec<String>List of known accounts in the ledger (for constrained prediction).
Trait Implementations§
Source§impl Clone for CategorizationRequest
impl Clone for CategorizationRequest
Source§fn clone(&self) -> CategorizationRequest
fn clone(&self) -> CategorizationRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CategorizationRequest
impl RefUnwindSafe for CategorizationRequest
impl Send for CategorizationRequest
impl Sync for CategorizationRequest
impl Unpin for CategorizationRequest
impl UnsafeUnpin for CategorizationRequest
impl UnwindSafe for CategorizationRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more