pub struct SourceLocation {Show 14 fields
pub schema_version: String,
pub source_id: SourceId,
pub provider: String,
pub source_kind: SourceKind,
pub location_origin: LocationOrigin,
pub adapter_id: Option<String>,
pub adapter_version: Option<String>,
pub path_hash: Option<String>,
pub path_label: Option<String>,
pub enabled: bool,
pub verification_mode: SourceVerificationMode,
pub verified_state_hash: Option<String>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Fields§
§schema_version: String§source_id: SourceId§provider: String§source_kind: SourceKind§location_origin: LocationOrigin§adapter_id: Option<String>§adapter_version: Option<String>§path_hash: Option<String>§path_label: Option<String>§enabled: bool§verification_mode: SourceVerificationMode§verified_state_hash: Option<String>§created_at: DateTime<Utc>§updated_at: DateTime<Utc>Implementations§
Source§impl SourceLocation
impl SourceLocation
pub fn local_adapter( provider: impl Into<String>, adapter_id: impl Into<String>, adapter_version: impl Into<String>, path: &Path, location_origin: LocationOrigin, ) -> Self
pub fn external_report( provider: impl Into<String>, adapter_id: impl Into<String>, adapter_version: impl Into<String>, path: &Path, ) -> Self
pub fn reported_usage( provider: impl Into<String>, source_kind: SourceKind, adapter_id: impl Into<String>, adapter_version: impl Into<String>, evidence_key: impl AsRef<str>, path_label: Option<String>, ) -> Self
Trait Implementations§
Source§impl Clone for SourceLocation
impl Clone for SourceLocation
Source§fn clone(&self) -> SourceLocation
fn clone(&self) -> SourceLocation
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 SourceLocation
impl Debug for SourceLocation
Source§impl<'de> Deserialize<'de> for SourceLocation
impl<'de> Deserialize<'de> for SourceLocation
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 Eq for SourceLocation
Source§impl JsonSchema for SourceLocation
impl JsonSchema for SourceLocation
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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 is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for SourceLocation
impl PartialEq for SourceLocation
Source§fn eq(&self, other: &SourceLocation) -> bool
fn eq(&self, other: &SourceLocation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SourceLocation
impl Serialize for SourceLocation
impl StructuralPartialEq for SourceLocation
Auto Trait Implementations§
impl Freeze for SourceLocation
impl RefUnwindSafe for SourceLocation
impl Send for SourceLocation
impl Sync for SourceLocation
impl Unpin for SourceLocation
impl UnsafeUnpin for SourceLocation
impl UnwindSafe for SourceLocation
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