pub struct DamlTemplate<'a> { /* private fields */ }Expand description
A Daml template.
Implementations§
Source§impl<'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§
Source§impl<'a> Clone for DamlTemplate<'a>
impl<'a> Clone for DamlTemplate<'a>
Source§fn clone(&self) -> DamlTemplate<'a>
fn clone(&self) -> DamlTemplate<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> DamlVisitableElement<'a> for DamlTemplate<'a>
impl<'a> DamlVisitableElement<'a> for DamlTemplate<'a>
fn accept(&'a self, visitor: &'a mut impl DamlElementVisitor)
Source§impl<'a> Debug for DamlTemplate<'a>
impl<'a> Debug for DamlTemplate<'a>
Source§impl<'a> IntoBoundedStatic for DamlTemplate<'a>
impl<'a> IntoBoundedStatic for DamlTemplate<'a>
Source§type Static = DamlTemplate<'static>
type Static = DamlTemplate<'static>
The target type is bounded by the
'static lifetime.Source§fn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
Convert an owned
T into an owned T such that T: 'static.Source§impl PartialEq<DamlData<'_>> for DamlTemplate<'_>
Convenience impl to compare a DamlData with a DamlTemplate.
impl PartialEq<DamlData<'_>> for DamlTemplate<'_>
Convenience impl to compare a DamlData with a DamlTemplate.
Source§impl PartialEq<DamlTemplate<'_>> for DamlData<'_>
Convenience impl to compare a DamlTemplate with a DamlData.
impl PartialEq<DamlTemplate<'_>> for DamlData<'_>
Convenience impl to compare a DamlTemplate with a DamlData.
Source§impl PartialEq<DamlTemplate<'_>> for DamlTemplate<'_>
impl PartialEq<DamlTemplate<'_>> for DamlTemplate<'_>
Source§impl<'a> Serialize for DamlTemplate<'a>
impl<'a> Serialize for DamlTemplate<'a>
Source§impl<'a> ToBoundedStatic for DamlTemplate<'a>
impl<'a> ToBoundedStatic for DamlTemplate<'a>
Auto Trait Implementations§
impl<'a> Freeze for DamlTemplate<'a>
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§
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<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>
Converts
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>
Converts
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