pub struct Organization { /* private fields */ }Expand description
Native representation of the state object Organization
Organizations provide a top-level identity to associate the lower-level objects to across
smart contracts.
Implementations§
Source§impl Organization
impl Organization
pub fn org_id(&self) -> &str
pub fn name(&self) -> &str
pub fn locations(&self) -> &[String]
pub fn alternate_ids(&self) -> &[AlternateId]
pub fn metadata(&self) -> &[KeyValueEntry]
Trait Implementations§
Source§impl Clone for Organization
impl Clone for Organization
Source§fn clone(&self) -> Organization
fn clone(&self) -> Organization
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 Debug for Organization
impl Debug for Organization
Source§impl FromBytes<Organization> for Organization
impl FromBytes<Organization> for Organization
fn from_bytes(bytes: &[u8]) -> Result<Organization, ProtoConversionError>
Source§impl FromNative<Organization> for Organization
impl FromNative<Organization> for Organization
fn from_native(org: Organization) -> Result<Self, ProtoConversionError>
Source§impl FromProto<Organization> for Organization
impl FromProto<Organization> for Organization
fn from_proto(org: Organization) -> Result<Self, ProtoConversionError>
Source§impl IntoBytes for Organization
impl IntoBytes for Organization
fn into_bytes(self) -> Result<Vec<u8>, ProtoConversionError>
Source§impl IntoNative<Organization> for Organization
impl IntoNative<Organization> for Organization
fn into_native(self) -> Result<T, ProtoConversionError>
Source§impl IntoProto<Organization> for Organization
impl IntoProto<Organization> for Organization
fn into_proto(self) -> Result<T, ProtoConversionError>
Source§impl PartialEq for Organization
impl PartialEq for Organization
impl StructuralPartialEq for Organization
Auto Trait Implementations§
impl Freeze for Organization
impl RefUnwindSafe for Organization
impl Send for Organization
impl Sync for Organization
impl Unpin for Organization
impl UnwindSafe for Organization
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