pub struct AgencyRecord {
pub agency_id: Option<String>,
pub name: Option<String>,
pub abbreviation: Option<String>,
pub code: Option<String>,
pub department: Option<Value>,
pub extra: HashMap<String, Value>,
}Expand description
A federal agency record.
Returned by Client::get_agency. The Tango
API uses CGAC codes as the identifier (e.g. "9700" for the Department of
Defense). All fields are optional; unknown server-side fields are captured
in extra so a schema addition never silently drops data.
Fields§
§agency_id: Option<String>The agency’s internal identifier (Tango-specific).
name: Option<String>Human-readable agency name.
abbreviation: Option<String>Common abbreviation (e.g. "DOD").
code: Option<String>Code (typically the CGAC code).
department: Option<Value>Parent department metadata (nested object the server returns verbatim).
extra: HashMap<String, Value>Forward-compatible bucket for any unrecognized fields the server adds.
Trait Implementations§
Source§impl Clone for AgencyRecord
impl Clone for AgencyRecord
Source§fn clone(&self) -> AgencyRecord
fn clone(&self) -> AgencyRecord
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 AgencyRecord
impl Debug for AgencyRecord
Source§impl Default for AgencyRecord
impl Default for AgencyRecord
Source§fn default() -> AgencyRecord
fn default() -> AgencyRecord
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgencyRecord
impl<'de> Deserialize<'de> for AgencyRecord
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
Source§impl PartialEq for AgencyRecord
impl PartialEq for AgencyRecord
Source§fn eq(&self, other: &AgencyRecord) -> bool
fn eq(&self, other: &AgencyRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AgencyRecord
impl Serialize for AgencyRecord
impl Eq for AgencyRecord
impl StructuralPartialEq for AgencyRecord
Auto Trait Implementations§
impl Freeze for AgencyRecord
impl RefUnwindSafe for AgencyRecord
impl Send for AgencyRecord
impl Sync for AgencyRecord
impl Unpin for AgencyRecord
impl UnsafeUnpin for AgencyRecord
impl UnwindSafe for AgencyRecord
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