pub struct Activity {
pub iati_identifier: String,
pub default_currency: Option<CurrencyCode>,
pub transactions: Vec<Transaction>,
pub reporting_org: Option<OrgRef>,
pub activity_start: Option<NaiveDate>,
pub activity_end: Option<NaiveDate>,
}Expand description
IATI Activity (trimmed to basic fields for foundational fields of the Activity struct here).
Fields§
§iati_identifier: String‘iati-identifier’ element: the unique identifier for the Activity.
default_currency: Option<CurrencyCode>Default ISO 4217 currency for monety values in this Activity. Use when ‘value/@currency’ is not present.
transactions: Vec<Transaction>Transactions recorded for this activity.
reporting_org: Option<OrgRef>Reporting organisation publishing this Activity.
activity_start: Option<NaiveDate>Activity start/end dates from ‘activity-date’ element.
activity_end: Option<NaiveDate>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Activity
impl<'de> Deserialize<'de> for Activity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Activity
Auto Trait Implementations§
impl Freeze for Activity
impl RefUnwindSafe for Activity
impl Send for Activity
impl Sync for Activity
impl Unpin for Activity
impl UnwindSafe for Activity
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