pub struct LogicalObject {
pub descriptor: ObjectDescriptor,
pub bytes: Vec<u8>,
}Fields§
§descriptor: ObjectDescriptor§bytes: Vec<u8>Implementations§
Source§impl LogicalObject
impl LogicalObject
pub fn new( namespace: ObjectNamespace, logical_name: impl Into<String>, media_type: impl Into<String>, bytes: Vec<u8>, ) -> ArtifactResult<Self>
pub fn validate(&self) -> ArtifactResult<()>
Trait Implementations§
Source§impl Clone for LogicalObject
impl Clone for LogicalObject
Source§fn clone(&self) -> LogicalObject
fn clone(&self) -> LogicalObject
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LogicalObject
impl Debug for LogicalObject
impl Eq for LogicalObject
Source§impl PartialEq for LogicalObject
impl PartialEq for LogicalObject
impl StructuralPartialEq for LogicalObject
Auto Trait Implementations§
impl Freeze for LogicalObject
impl RefUnwindSafe for LogicalObject
impl Send for LogicalObject
impl Sync for LogicalObject
impl Unpin for LogicalObject
impl UnsafeUnpin for LogicalObject
impl UnwindSafe for LogicalObject
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.