pub struct IacDataSource {
pub name: String,
pub description: String,
pub read_endpoint: String,
pub read_schema: String,
pub read_response_schema: Option<String>,
pub attributes: Vec<IacAttribute>,
pub read_mapping: BTreeMap<String, String>,
}Expand description
A fully resolved data source in the platform-independent IR.
Fields§
§name: String§description: String§read_endpoint: String§read_schema: String§read_response_schema: Option<String>§attributes: Vec<IacAttribute>§read_mapping: BTreeMap<String, String>Mapping from API response JSON paths to canonical field names.
Direction matches the TOML source: json_response_key -> canonical_param_name.
Implementations§
Source§impl IacDataSource
impl IacDataSource
Sourcepub fn computed_attribute_names(&self) -> Vec<&str>
pub fn computed_attribute_names(&self) -> Vec<&str>
Computed attribute names.
Trait Implementations§
Source§impl Clone for IacDataSource
impl Clone for IacDataSource
Source§fn clone(&self) -> IacDataSource
fn clone(&self) -> IacDataSource
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 IacDataSource
impl Debug for IacDataSource
Source§impl<'de> Deserialize<'de> for IacDataSource
impl<'de> Deserialize<'de> for IacDataSource
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 Display for IacDataSource
impl Display for IacDataSource
Source§impl FromSExpr for IacDataSource
impl FromSExpr for IacDataSource
Source§fn from_sexpr(s: &SExpr) -> Result<Self, SExprError>
fn from_sexpr(s: &SExpr) -> Result<Self, SExprError>
Errors Read more
Source§impl HasAttributes for IacDataSource
impl HasAttributes for IacDataSource
Source§fn attributes(&self) -> &[IacAttribute]
fn attributes(&self) -> &[IacAttribute]
The full list of attributes on this IR type.
Source§fn input_attributes(&self) -> Vec<&IacAttribute>
fn input_attributes(&self) -> Vec<&IacAttribute>
Attributes that are user-provided inputs (not purely computed). Read more
Source§fn output_attributes(&self) -> Vec<&IacAttribute>
fn output_attributes(&self) -> Vec<&IacAttribute>
Attributes that appear in the output/state (computed or required).
Source§fn required_attribute_names(&self) -> Vec<&str>
fn required_attribute_names(&self) -> Vec<&str>
Required attribute canonical names.
Source§fn sensitive_attribute_names(&self) -> Vec<&str>
fn sensitive_attribute_names(&self) -> Vec<&str>
Sensitive attribute canonical names.
Source§impl Serialize for IacDataSource
impl Serialize for IacDataSource
Source§impl ToSExpr for IacDataSource
impl ToSExpr for IacDataSource
fn to_sexpr(&self) -> SExpr
Source§fn content_hash(&self) -> ContentHash
fn content_hash(&self) -> ContentHash
Convenience: content hash of this value’s canonical emission. Read more
Auto Trait Implementations§
impl Freeze for IacDataSource
impl RefUnwindSafe for IacDataSource
impl Send for IacDataSource
impl Sync for IacDataSource
impl Unpin for IacDataSource
impl UnsafeUnpin for IacDataSource
impl UnwindSafe for IacDataSource
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