pub struct A2APurchase {Show 25 fields
pub id: Uuid,
pub purchase_number: String,
pub status: PurchaseStatus,
pub buyer_agent_id: Uuid,
pub seller_agent_id: Uuid,
pub quote_id: Option<Uuid>,
pub cart_id: Option<Uuid>,
pub order_id: Option<Uuid>,
pub payment_intent_id: Option<Uuid>,
pub items: Vec<QuotedItem>,
pub total: Decimal,
pub currency: CurrencyCode,
pub fulfillment_type: Option<String>,
pub tracking_info: Option<String>,
pub delivered_at: Option<DateTime<Utc>>,
pub delivery_confirmed_at: Option<DateTime<Utc>>,
pub delivery_confirmation_signature: Option<String>,
pub buyer_rating: Option<u8>,
pub buyer_feedback: Option<String>,
pub seller_rating: Option<u8>,
pub seller_feedback: Option<String>,
pub notes: Option<String>,
pub metadata: Option<String>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
A persisted A2A purchase between agents
Fields§
§id: Uuid§purchase_number: String§status: PurchaseStatus§buyer_agent_id: Uuid§seller_agent_id: Uuid§quote_id: Option<Uuid>§cart_id: Option<Uuid>§order_id: Option<Uuid>§payment_intent_id: Option<Uuid>§items: Vec<QuotedItem>§total: Decimal§currency: CurrencyCode§fulfillment_type: Option<String>§tracking_info: Option<String>§delivered_at: Option<DateTime<Utc>>§delivery_confirmed_at: Option<DateTime<Utc>>§delivery_confirmation_signature: Option<String>§buyer_rating: Option<u8>§buyer_feedback: Option<String>§seller_rating: Option<u8>§seller_feedback: Option<String>§notes: Option<String>§metadata: Option<String>§created_at: DateTime<Utc>§updated_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for A2APurchase
impl Clone for A2APurchase
Source§fn clone(&self) -> A2APurchase
fn clone(&self) -> A2APurchase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for A2APurchase
impl Debug for A2APurchase
Source§impl<'de> Deserialize<'de> for A2APurchase
impl<'de> Deserialize<'de> for A2APurchase
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<A2APurchase, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<A2APurchase, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for A2APurchase
impl Serialize for A2APurchase
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for A2APurchase
impl RefUnwindSafe for A2APurchase
impl Send for A2APurchase
impl Sync for A2APurchase
impl Unpin for A2APurchase
impl UnsafeUnpin for A2APurchase
impl UnwindSafe for A2APurchase
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