@@ -1958,6 +1958,9 @@ pub struct Transaction<'a> {
1958
1958
/// An optional environment identifier.
1959
1959
#[ serde( default , skip_serializing_if = "Option::is_none" ) ]
1960
1960
pub environment : Option < Cow < ' a , str > > ,
1961
+ /// Optionally user data to be sent along.
1962
+ #[ serde( default , skip_serializing_if = "Option::is_none" ) ]
1963
+ pub user : Option < User > ,
1961
1964
/// Optional tags to be attached to the event.
1962
1965
#[ serde( default , skip_serializing_if = "Map::is_empty" ) ]
1963
1966
pub tags : Map < String , String > ,
@@ -2002,6 +2005,7 @@ impl<'a> Default for Transaction<'a> {
2002
2005
Transaction {
2003
2006
event_id : event:: default_id ( ) ,
2004
2007
name : Default :: default ( ) ,
2008
+ user : Default :: default ( ) ,
2005
2009
tags : Default :: default ( ) ,
2006
2010
extra : Default :: default ( ) ,
2007
2011
release : Default :: default ( ) ,
@@ -2028,6 +2032,7 @@ impl<'a> Transaction<'a> {
2028
2032
Transaction {
2029
2033
event_id : self . event_id ,
2030
2034
name : self . name ,
2035
+ user : self . user ,
2031
2036
tags : self . tags ,
2032
2037
extra : self . extra ,
2033
2038
release : self . release . map ( |x| Cow :: Owned ( x. into_owned ( ) ) ) ,
0 commit comments