pub struct CustomResource { /* private fields */ }Expand description
Configuration of a resource whose type an extension defines.
config holds every field but type, including id, so the resource serializes back
exactly as it was read.
Implementations§
Trait Implementations§
Source§impl Clone for CustomResource
impl Clone for CustomResource
Source§impl Debug for CustomResource
impl Debug for CustomResource
impl Eq for CustomResource
Source§impl PartialEq for CustomResource
impl PartialEq for CustomResource
Source§impl ResourceDefinition for CustomResource
impl ResourceDefinition for CustomResource
Source§fn get_dependencies(&self) -> Vec<ResourceRef>
fn get_dependencies(&self) -> Vec<ResourceRef>
Alien cannot read references out of a config it does not know. A custom resource’s
dependencies travel in ResourceEntry.dependencies instead.
Source§fn validate_update(&self, new_config: &dyn ResourceDefinition) -> Result<()>
fn validate_update(&self, new_config: &dyn ResourceDefinition) -> Result<()>
The type and id can’t change, as for Alien’s own types; which other fields may is the controller’s to say when it starts the update.
Source§fn replace_after_failed_create_is_safe(&self) -> bool
fn replace_after_failed_create_is_safe(&self) -> bool
Alien cannot tell whether a custom resource holds data, so it never deletes a half-created one to create it again.
Source§fn get_resource_type(&self) -> ResourceType
fn get_resource_type(&self) -> ResourceType
Returns the resource type for this instance
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Provides mutable access to the underlying concrete type for downcasting
Source§fn box_clone(&self) -> Box<dyn ResourceDefinition>
fn box_clone(&self) -> Box<dyn ResourceDefinition>
Creates a boxed clone of this resource definition
Source§fn resource_eq(&self, other: &dyn ResourceDefinition) -> bool
fn resource_eq(&self, other: &dyn ResourceDefinition) -> bool
For equality comparison between resource definitions
Source§fn to_json_value(&self) -> Result<Value>
fn to_json_value(&self) -> Result<Value>
Serialize this resource to a JSON value (without the “type” tag - that’s added by Resource)
Source§fn get_permissions(&self) -> Option<&str>
fn get_permissions(&self) -> Option<&str>
Returns the permission profile name for this resource, if it has one. Read more
Source§fn with_empty_input_references_removed(
&self,
_inputs: &InputAnswers<'_>,
) -> Option<Box<dyn ResourceDefinition>>
fn with_empty_input_references_removed( &self, _inputs: &InputAnswers<'_>, ) -> Option<Box<dyn ResourceDefinition>>
Resolves the fields of this config that point at a deployer stack input. Read more
impl StructuralPartialEq for CustomResource
Auto Trait Implementations§
impl Forget for CustomResource
impl Freeze for CustomResource
impl Move for CustomResource
impl RefUnwindSafe for CustomResource
impl Send for CustomResource
impl Sync for CustomResource
impl Unpin for CustomResource
impl UnsafeUnpin for CustomResource
impl UnwindSafe for CustomResource
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.