agde::event

Struct Create

source
pub struct Create { /* private fields */ }
Expand description

The creation of a resource.

Creates an empty file. Overrides the file if it already exists.

Implementations§

source§

impl Create

source

pub fn new(resource: String) -> Self

Signals resource should be created, or overridden if present.

source

pub fn resource(&self) -> &str

Returns a reference to the target resource name.

Trait Implementations§