Struct daml_lf::element::DamlTemplate
source · [−]pub struct DamlTemplate<'a> { /* private fields */ }Expand description
A Daml template.
Implementations
sourceimpl<'a> DamlTemplate<'a>
impl<'a> DamlTemplate<'a>
pub fn new(
name: Cow<'a, str>,
package_id: Cow<'a, str>,
module_path: Vec<Cow<'a, str>>,
fields: Vec<DamlField<'a>>,
choices: Vec<DamlChoice<'a>>,
param: Cow<'a, str>,
precond: Option<DamlExpr<'a>>,
signatories: DamlExpr<'a>,
agreement: DamlExpr<'a>,
observers: DamlExpr<'a>,
key: Option<DamlDefKey<'a>>,
serializable: bool
) -> Self
pub fn new_with_defaults(
name: Cow<'a, str>,
package_id: Cow<'a, str>,
module_path: Vec<Cow<'a, str>>,
fields: Vec<DamlField<'a>>
) -> Self
pub fn name(&self) -> &str
pub fn package_id(&self) -> &str
pub fn module_path(&self) -> impl Iterator<Item = &str>
pub fn fields(&self) -> &[DamlField<'a>]
pub fn choices(&self) -> &[DamlChoice<'a>]
pub fn param(&self) -> &str
pub fn precond(&self) -> Option<&DamlExpr<'a>>
pub fn signatories(&self) -> &DamlExpr<'a>
pub fn agreement(&self) -> &DamlExpr<'a>
pub fn observers(&self) -> &DamlExpr<'a>
pub fn key(&self) -> Option<&DamlDefKey<'a>>
pub const fn serializable(&self) -> bool
Trait Implementations
sourceimpl<'a> Clone for DamlTemplate<'a>
impl<'a> Clone for DamlTemplate<'a>
sourcefn clone(&self) -> DamlTemplate<'a>
fn clone(&self) -> DamlTemplate<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'a> DamlVisitableElement<'a> for DamlTemplate<'a>
impl<'a> DamlVisitableElement<'a> for DamlTemplate<'a>
fn accept(&'a self, visitor: &'a mut impl DamlElementVisitor)
sourceimpl<'a> Debug for DamlTemplate<'a>
impl<'a> Debug for DamlTemplate<'a>
sourceimpl<'a> IntoBoundedStatic for DamlTemplate<'a>
impl<'a> IntoBoundedStatic for DamlTemplate<'a>
type Static = DamlTemplate<'static>
type Static = DamlTemplate<'static>
The target type is bounded by the 'static lifetime.
sourcefn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
Convert an owned T into an owned T such that T: 'static.
sourceimpl PartialEq<DamlData<'_>> for DamlTemplate<'_>
impl PartialEq<DamlData<'_>> for DamlTemplate<'_>
Convenience impl to compare a DamlData with a DamlTemplate.
sourceimpl PartialEq<DamlTemplate<'_>> for DamlData<'_>
impl PartialEq<DamlTemplate<'_>> for DamlData<'_>
Convenience impl to compare a DamlTemplate with a DamlData.
sourceimpl PartialEq<DamlTemplate<'_>> for DamlTemplate<'_>
impl PartialEq<DamlTemplate<'_>> for DamlTemplate<'_>
sourceimpl<'a> Serialize for DamlTemplate<'a>
impl<'a> Serialize for DamlTemplate<'a>
sourceimpl<'a> ToBoundedStatic for DamlTemplate<'a>
impl<'a> ToBoundedStatic for DamlTemplate<'a>
type Static = DamlTemplate<'static>
type Static = DamlTemplate<'static>
The target type is bounded by the 'static lifetime.
Auto Trait Implementations
impl<'a> RefUnwindSafe for DamlTemplate<'a>
impl<'a> Send for DamlTemplate<'a>
impl<'a> Sync for DamlTemplate<'a>
impl<'a> Unpin for DamlTemplate<'a>
impl<'a> UnwindSafe for DamlTemplate<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more