pub struct ExternalResource {
pub type: Type,
pub description: Option<String>,
pub output: Type,
}Expand description
Represents an external resource dependency.
These resources may represent things like files, APIs, or external data sources.
Fields§
§type: TypeThe type of the external resource.
description: Option<String>An optional description of the external resource.
output: TypeThe type of data produced by this resource.
Implementations§
Source§impl ExternalResource
impl ExternalResource
Sourcepub fn new<ResourceType, Output>() -> Self
pub fn new<ResourceType, Output>() -> Self
Creates a new ExternalResource description.
Sourcepub fn with_description(self, description: String) -> Self
pub fn with_description(self, description: String) -> Self
Sets a description.
This is primarily used to provide additional documentation or context.
Trait Implementations§
Source§impl Clone for ExternalResource
impl Clone for ExternalResource
Source§fn clone(&self) -> ExternalResource
fn clone(&self) -> ExternalResource
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 moreAuto Trait Implementations§
impl Freeze for ExternalResource
impl RefUnwindSafe for ExternalResource
impl Send for ExternalResource
impl Sync for ExternalResource
impl Unpin for ExternalResource
impl UnwindSafe for ExternalResource
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