pub struct DataContract {
pub required_classification: String,
pub purpose: String,
pub retention: String,
pub allow_forwarding: bool,
}Expand description
Data-processing contract between the gateway and a downstream agent (P2-7).
Federation only forwards classified data to agents that advertise a
data_class at least as protective as required_classification. The
classification ordering is public < internal < confidential; an agent
that advertises no classification (or an unknown one) is not admitted —
fail closed.
Fields§
§required_classification: StringMinimum data_class the downstream agent must advertise.
purpose: StringPurpose the data may be used for (informational, surfaces in errors).
retention: StringRetention the downstream promises (e.g. “session”, “7d”).
allow_forwarding: boolWhether the downstream may forward data to further agents.
Implementations§
Trait Implementations§
Source§impl Clone for DataContract
impl Clone for DataContract
Source§fn clone(&self) -> DataContract
fn clone(&self) -> DataContract
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 moreAuto Trait Implementations§
impl Freeze for DataContract
impl RefUnwindSafe for DataContract
impl Send for DataContract
impl Sync for DataContract
impl Unpin for DataContract
impl UnsafeUnpin for DataContract
impl UnwindSafe for DataContract
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