pub struct StrikeActionMetadata {
pub icon: String,
pub homepage: String,
pub label: String,
pub title: String,
pub description: String,
pub canister_id: String,
pub derivation_origin: Option<String>,
pub actions: Vec<StrikeAction>,
}Fields§
§icon: String§homepage: String§label: String§title: String§description: String§canister_id: String§derivation_origin: Option<String>§actions: Vec<StrikeAction>Implementations§
Source§impl StrikeActionMetadata
impl StrikeActionMetadata
Sourcepub fn with_canister_id(self, canister_id: String) -> Self
pub fn with_canister_id(self, canister_id: String) -> Self
Create StrikeActionMetadata with a custom canister ID
Sourcepub fn with_derivation_origin(self, derivation_origin: Option<String>) -> Self
pub fn with_derivation_origin(self, derivation_origin: Option<String>) -> Self
Create StrikeActionMetadata with a custom derivation origin
Sourcepub fn with_label(self, label: String) -> Self
pub fn with_label(self, label: String) -> Self
Create StrikeActionMetadata with a custom label
Trait Implementations§
Source§impl Debug for StrikeActionMetadata
impl Debug for StrikeActionMetadata
Source§impl<'de> Deserialize<'de> for StrikeActionMetadata
impl<'de> Deserialize<'de> for StrikeActionMetadata
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Market> for StrikeActionMetadata
impl From<Market> for StrikeActionMetadata
Auto Trait Implementations§
impl Freeze for StrikeActionMetadata
impl RefUnwindSafe for StrikeActionMetadata
impl !Send for StrikeActionMetadata
impl !Sync for StrikeActionMetadata
impl Unpin for StrikeActionMetadata
impl UnsafeUnpin for StrikeActionMetadata
impl UnwindSafe for StrikeActionMetadata
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