pub struct ConnectionConsent {
pub connection_id: String,
pub subject: Option<String>,
pub scopes: BTreeSet<String>,
pub recorded_at: DateTime<Utc>,
}Expand description
The journaled consent act (output of
RunEventKind::ConnectionConsented):
the human’s grant at the provider, recorded. Scope widening is only
ever this — a new consent act, journaled; there is no API path that
widens a connection’s consented set silently.
Fields§
§connection_id: StringThe connection the consent governs.
subject: Option<String>The subject the consent binds, when per-user.
scopes: BTreeSet<String>The consent scope set as recorded — the new ceiling.
recorded_at: DateTime<Utc>When the consent was recorded.
Trait Implementations§
Source§impl Clone for ConnectionConsent
impl Clone for ConnectionConsent
Source§impl Debug for ConnectionConsent
impl Debug for ConnectionConsent
Source§impl<'de> Deserialize<'de> for ConnectionConsent
impl<'de> Deserialize<'de> for ConnectionConsent
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 ConnectionConsent
impl PartialEq for ConnectionConsent
Source§impl Serialize for ConnectionConsent
impl Serialize for ConnectionConsent
impl StructuralPartialEq for ConnectionConsent
Auto Trait Implementations§
impl Freeze for ConnectionConsent
impl RefUnwindSafe for ConnectionConsent
impl Send for ConnectionConsent
impl Sync for ConnectionConsent
impl Unpin for ConnectionConsent
impl UnsafeUnpin for ConnectionConsent
impl UnwindSafe for ConnectionConsent
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