pub struct SourceRecord {
pub decision: SourceDecision,
pub scope: SourceScope,
pub decided_at: Datetime,
pub via: Option<TrustVia>,
pub machine: Option<String>,
pub url: Option<String>,
pub lapsed: Option<Lapse>,
pub extra: Table,
}Expand description
One decision about one source key.
Fields§
§decision: SourceDecision§scope: SourceScopeMust fit the key: repo (host/owner/repo, file:///...),
owner (host/owner), host (host).
decided_at: Datetime§via: Option<TrustVia>§machine: Option<String>Label of the machine that decided.
url: Option<String>The URL the decision was made for, without userinfo.
lapsed: Option<Lapse>§extra: TableTrait Implementations§
Source§impl Clone for SourceRecord
impl Clone for SourceRecord
Source§impl Debug for SourceRecord
impl Debug for SourceRecord
Source§impl<'de> Deserialize<'de> for SourceRecord
impl<'de> Deserialize<'de> for SourceRecord
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 JsonSchema for SourceRecord
impl JsonSchema for SourceRecord
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for SourceRecord
impl PartialEq for SourceRecord
Source§impl Serialize for SourceRecord
impl Serialize for SourceRecord
impl StructuralPartialEq for SourceRecord
Auto Trait Implementations§
impl Forget for SourceRecord
impl Freeze for SourceRecord
impl Move for SourceRecord
impl RefUnwindSafe for SourceRecord
impl Send for SourceRecord
impl Sync for SourceRecord
impl Unpin for SourceRecord
impl UnsafeUnpin for SourceRecordwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for SourceRecord
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