#[non_exhaustive]pub struct Interface {
pub name: String,
pub module_name: String,
pub package_id: String,
pub package_name: String,
pub view: Option<DamlType>,
pub choices: Vec<Choice>,
}Expand description
A Daml interface: its view type and choices, plus the on-ledger identity a
choice exercised through the interface needs. The marker struct itself is
emitted from the interface’s DataCons::Interface data type; this adds the
Interface/Choice impls on that marker.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe interface name (PascalCase) — also the marker struct’s name.
module_name: StringThe Daml module the interface is defined in, dotted (e.g. Splice.Api…).
package_id: StringThe id (hash) of the package the interface is defined in.
package_name: StringThe Daml package name, for the #<package-name> id form.
view: Option<DamlType>The interface’s view type (its viewtype), if known.
choices: Vec<Choice>The choices the interface declares.
Implementations§
Trait Implementations§
impl Eq for Interface
impl StructuralPartialEq for Interface
Auto Trait Implementations§
impl Freeze for Interface
impl RefUnwindSafe for Interface
impl Send for Interface
impl Sync for Interface
impl Unpin for Interface
impl UnsafeUnpin for Interface
impl UnwindSafe for Interface
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.