pub struct SourceDescriptor {
pub id: SourceId,
pub name: String,
pub type_id: TypeId,
pub modality: String,
pub native_representation: RepresentationSpec,
pub sample_key: String,
pub granularity: SourceGranularity,
pub schema: BTreeMap<String, Value>,
pub tags: BTreeMap<String, Value>,
pub shape_contract: Option<ShapeContract>,
}Fields§
§id: SourceId§name: String§type_id: TypeId§modality: String§native_representation: RepresentationSpec§sample_key: String§granularity: SourceGranularity§schema: BTreeMap<String, Value>§shape_contract: Option<ShapeContract>Implementations§
Trait Implementations§
Source§impl Clone for SourceDescriptor
impl Clone for SourceDescriptor
Source§fn clone(&self) -> SourceDescriptor
fn clone(&self) -> SourceDescriptor
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 SourceDescriptor
impl Debug for SourceDescriptor
Source§impl<'de> Deserialize<'de> for SourceDescriptor
impl<'de> Deserialize<'de> for SourceDescriptor
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 SourceDescriptor
impl PartialEq for SourceDescriptor
Source§fn eq(&self, other: &SourceDescriptor) -> bool
fn eq(&self, other: &SourceDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SourceDescriptor
impl Serialize for SourceDescriptor
impl StructuralPartialEq for SourceDescriptor
Auto Trait Implementations§
impl Freeze for SourceDescriptor
impl RefUnwindSafe for SourceDescriptor
impl Send for SourceDescriptor
impl Sync for SourceDescriptor
impl Unpin for SourceDescriptor
impl UnsafeUnpin for SourceDescriptor
impl UnwindSafe for SourceDescriptor
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