pub struct UncheckedProxyAsset {
pub asset: String,
pub value_reference: Option<UncheckedValueRef>,
}
Expand description
A proxy asset with unchecked ans_host entry fields.
Fields§
§asset: String
The asset that’s held by the proxy
value_reference: Option<UncheckedValueRef>
The value reference provides the tooling to get the value of the asset relative to the base asset. If None, the provided asset is set as the base asset. You can only have one base asset!
Implementations§
Source§impl UncheckedProxyAsset
impl UncheckedProxyAsset
pub fn new( asset: impl Into<String>, value_reference: Option<UncheckedValueRef>, ) -> Self
Sourcepub fn check(
self,
deps: Deps<'_>,
ans_host: &AnsHost,
) -> AbstractResult<ProxyAsset>
pub fn check( self, deps: Deps<'_>, ans_host: &AnsHost, ) -> AbstractResult<ProxyAsset>
Perform checks on the proxy asset to ensure it can be resolved by the AnsHost
Trait Implementations§
Source§impl Clone for UncheckedProxyAsset
impl Clone for UncheckedProxyAsset
Source§fn clone(&self) -> UncheckedProxyAsset
fn clone(&self) -> UncheckedProxyAsset
Returns a duplicate of the value. Read more
1.0.0 · 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 UncheckedProxyAsset
impl Debug for UncheckedProxyAsset
Source§impl<'de> Deserialize<'de> for UncheckedProxyAsset
impl<'de> Deserialize<'de> for UncheckedProxyAsset
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 UncheckedProxyAsset
impl JsonSchema for UncheckedProxyAsset
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 UncheckedProxyAsset
impl PartialEq for UncheckedProxyAsset
Source§impl Serialize for UncheckedProxyAsset
impl Serialize for UncheckedProxyAsset
impl Eq for UncheckedProxyAsset
impl StructuralPartialEq for UncheckedProxyAsset
Auto Trait Implementations§
impl Freeze for UncheckedProxyAsset
impl RefUnwindSafe for UncheckedProxyAsset
impl Send for UncheckedProxyAsset
impl Sync for UncheckedProxyAsset
impl Unpin for UncheckedProxyAsset
impl UnwindSafe for UncheckedProxyAsset
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