pub struct RawSourceInfo {
pub source_info_version: u32,
pub contract_id: String,
pub source_bundle_id: String,
pub sources: Vec<SourceFileInfo>,
pub imports: Vec<SourceImportInfo>,
pub declarations: Vec<SourceDeclaration>,
pub field_labels: Vec<FieldLabelProvenance>,
pub methods: Vec<SourceMethodInfo>,
pub function_arguments: Vec<SourceFunctionArgumentInfo>,
pub actors: Vec<SourceActorInfo>,
}Expand description
Unvalidated source/provenance data.
Raw data cannot be converted infallibly into validated SourceInfo:
ⓘ
use candid_core::{RawSourceInfo, SourceInfo};
fn bypass_validation(raw: RawSourceInfo) -> SourceInfo {
raw.into()
}Fields§
§source_info_version: u32§contract_id: String§source_bundle_id: String§sources: Vec<SourceFileInfo>§imports: Vec<SourceImportInfo>§declarations: Vec<SourceDeclaration>§field_labels: Vec<FieldLabelProvenance>§methods: Vec<SourceMethodInfo>§function_arguments: Vec<SourceFunctionArgumentInfo>§actors: Vec<SourceActorInfo>Trait Implementations§
Source§impl Clone for RawSourceInfo
impl Clone for RawSourceInfo
Source§fn clone(&self) -> RawSourceInfo
fn clone(&self) -> RawSourceInfo
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 RawSourceInfo
impl Debug for RawSourceInfo
Source§impl<'de> Deserialize<'de> for RawSourceInfo
impl<'de> Deserialize<'de> for RawSourceInfo
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 RawSourceInfo
Source§impl PartialEq for RawSourceInfo
impl PartialEq for RawSourceInfo
Source§impl Serialize for RawSourceInfo
impl Serialize for RawSourceInfo
impl StructuralPartialEq for RawSourceInfo
Auto Trait Implementations§
impl Freeze for RawSourceInfo
impl RefUnwindSafe for RawSourceInfo
impl Send for RawSourceInfo
impl Sync for RawSourceInfo
impl Unpin for RawSourceInfo
impl UnsafeUnpin for RawSourceInfo
impl UnwindSafe for RawSourceInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.