@@ -1821,6 +1821,12 @@ pub struct Transaction<'a> {
1821
1821
skip_serializing_if = "Option::is_none"
1822
1822
) ]
1823
1823
pub name : Option < String > ,
1824
+ /// A release identifier.
1825
+ #[ serde( default , skip_serializing_if = "Option::is_none" ) ]
1826
+ pub release : Option < Cow < ' a , str > > ,
1827
+ /// An optional environment identifier.
1828
+ #[ serde( default , skip_serializing_if = "Option::is_none" ) ]
1829
+ pub environment : Option < Cow < ' a , str > > ,
1824
1830
/// Optional tags to be attached to the event.
1825
1831
#[ serde( default , skip_serializing_if = "Map::is_empty" ) ]
1826
1832
pub tags : Map < String , String > ,
@@ -1852,6 +1858,8 @@ impl<'a> Default for Transaction<'a> {
1852
1858
event_id : event:: default_id ( ) ,
1853
1859
name : Default :: default ( ) ,
1854
1860
tags : Default :: default ( ) ,
1861
+ release : Default :: default ( ) ,
1862
+ environment : Default :: default ( ) ,
1855
1863
sdk : Default :: default ( ) ,
1856
1864
platform : event:: default_platform ( ) ,
1857
1865
timestamp : Default :: default ( ) ,
@@ -1874,6 +1882,8 @@ impl<'a> Transaction<'a> {
1874
1882
event_id : self . event_id ,
1875
1883
name : self . name ,
1876
1884
tags : self . tags ,
1885
+ release : self . release . map ( |x| Cow :: Owned ( x. into_owned ( ) ) ) ,
1886
+ environment : self . environment . map ( |x| Cow :: Owned ( x. into_owned ( ) ) ) ,
1877
1887
sdk : self . sdk . map ( |x| Cow :: Owned ( x. into_owned ( ) ) ) ,
1878
1888
platform : Cow :: Owned ( self . platform . into_owned ( ) ) ,
1879
1889
timestamp : self . timestamp ,
0 commit comments