pub struct Pullable {
pub wasm_url: String,
pub wasm_hash: Option<String>,
pub wasm_hash_url: Option<String>,
pub dependencies: Vec<Principal>,
pub init_guide: String,
pub init_arg: Option<String>,
}Fields§
§wasm_url: String§wasm_url
The Url to download canister wasm.
wasm_hash: Option<String>§wasm_hash
SHA256 hash of the wasm module located at wasm_url.
Only define this if the on-chain canister wasm is expected not to match the wasm at wasm_url.
The hash can also be specified via a URL using the wasm_hash_url field.
If both are defined, the wasm_hash_url field will be ignored.
wasm_hash_url: Option<String>§wasm_hash_url
Specify the SHA256 hash of the wasm module via this URL.
Only define this if the on-chain canister wasm is expected not to match the wasm at wasm_url.
The hash can also be specified directly using the wasm_hash field.
If both are defined, the wasm_hash_url field will be ignored.
dependencies: Vec<Principal>§dependencies
Canister IDs (Principal) of direct dependencies.
init_guide: String§init_guide
A message to guide consumers how to initialize the canister.
init_arg: Option<String>§init_arg
A default initialization argument for the canister that consumers can use.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pullable
impl<'de> Deserialize<'de> for Pullable
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>,
Source§impl JsonSchema for Pullable
impl JsonSchema for Pullable
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for Pullable
impl RefUnwindSafe for Pullable
impl Send for Pullable
impl Sync for Pullable
impl Unpin for Pullable
impl UnwindSafe for Pullable
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more