pub struct InventoryTargetRecord { /* private fields */ }Expand description
Canonical immutable declared physical target with required nullable fields.
Implementations§
Source§impl InventoryTargetRecord
impl InventoryTargetRecord
Sourcepub fn new(
request: &InventoryTargetRequest,
) -> Result<Self, InventoryRecordError>
pub fn new( request: &InventoryTargetRequest, ) -> Result<Self, InventoryRecordError>
Normalize equivalent principals/hashes and admit bounded opaque role text.
§Errors
Rejects malformed principals/hashes and excessive role bytes.
Sourcepub fn canister_id(&self) -> &str
pub fn canister_id(&self) -> &str
Read the exact canonical physical principal.
Sourcepub fn parent_canister_id(&self) -> Option<&str>
pub fn parent_canister_id(&self) -> Option<&str>
Read the optional canonical declared parent.
Sourcepub fn module_hash(&self) -> Option<&str>
pub fn module_hash(&self) -> Option<&str>
Read the optional canonical declared module digest.
Trait Implementations§
Source§impl Clone for InventoryTargetRecord
impl Clone for InventoryTargetRecord
Source§impl Debug for InventoryTargetRecord
impl Debug for InventoryTargetRecord
Source§impl<'de> Deserialize<'de> for InventoryTargetRecord
impl<'de> Deserialize<'de> for InventoryTargetRecord
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
impl Eq for InventoryTargetRecord
Source§impl PartialEq for InventoryTargetRecord
impl PartialEq for InventoryTargetRecord
Source§impl Serialize for InventoryTargetRecord
impl Serialize for InventoryTargetRecord
impl StructuralPartialEq for InventoryTargetRecord
Auto Trait Implementations§
impl Freeze for InventoryTargetRecord
impl RefUnwindSafe for InventoryTargetRecord
impl Send for InventoryTargetRecord
impl Sync for InventoryTargetRecord
impl Unpin for InventoryTargetRecord
impl UnsafeUnpin for InventoryTargetRecord
impl UnwindSafe for InventoryTargetRecord
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