Struct contract_metadata::ContractBuilder
source · pub struct ContractBuilder { /* private fields */ }Expand description
Builder for contract metadata
Implementations§
source§impl ContractBuilder
impl ContractBuilder
sourcepub fn name<S>(&mut self, name: S) -> &mut Selfwhere
S: AsRef<str>,
pub fn name<S>(&mut self, name: S) -> &mut Selfwhere S: AsRef<str>,
Set the contract name (required)
Set the contract version (required)
sourcepub fn description<S>(&mut self, description: S) -> &mut Selfwhere
S: AsRef<str>,
pub fn description<S>(&mut self, description: S) -> &mut Selfwhere S: AsRef<str>,
Set the contract description (optional)
sourcepub fn documentation(&mut self, documentation: Url) -> &mut Self
pub fn documentation(&mut self, documentation: Url) -> &mut Self
Set the contract documentation url (optional)
sourcepub fn repository(&mut self, repository: Url) -> &mut Self
pub fn repository(&mut self, repository: Url) -> &mut Self
Set the contract repository url (optional)
sourcepub fn homepage(&mut self, homepage: Url) -> &mut Self
pub fn homepage(&mut self, homepage: Url) -> &mut Self
Set the contract homepage url (optional)
Trait Implementations§
source§impl Default for ContractBuilder
impl Default for ContractBuilder
source§fn default() -> ContractBuilder
fn default() -> ContractBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for ContractBuilder
impl Send for ContractBuilder
impl Sync for ContractBuilder
impl Unpin for ContractBuilder
impl UnwindSafe for ContractBuilder
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