pub struct ManagedAsset { /* private fields */ }Implementations§
Source§impl ManagedAsset
impl ManagedAsset
pub fn new( id: AssetId, display_name: impl Into<String>, initial_revision: ManagedAssetRevision, ) -> Result<Self, AssetModelError>
pub fn id(&self) -> &AssetId
pub fn display_name(&self) -> &str
pub fn current_revision(&self) -> &ManagedAssetRevision
pub fn publication(&self) -> &PublicationState
pub fn auth_entity(&self) -> Entity
pub fn has_pending_changes(&self) -> bool
pub fn publish_current(&mut self)
pub fn apply_publication_transition( &mut self, transition: PublicationTransition, ) -> Result<(), AssetModelError>
pub fn replace_current_revision(&mut self, revision: ManagedAssetRevision)
pub fn unpublish(&mut self) -> Result<(), AssetModelError>
pub fn plan_public_delivery( &self, context: &DeliveryContext<'_>, ) -> Result<AssetDeliveryPlan, AssetModelError>
pub fn auth_updates(&self) -> Vec<DefaultTupleUpdate>
Trait Implementations§
Source§impl Clone for ManagedAsset
impl Clone for ManagedAsset
Source§fn clone(&self) -> ManagedAsset
fn clone(&self) -> ManagedAsset
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 ManagedAsset
impl Debug for ManagedAsset
Source§impl PartialEq for ManagedAsset
impl PartialEq for ManagedAsset
impl Eq for ManagedAsset
impl StructuralPartialEq for ManagedAsset
Auto Trait Implementations§
impl Freeze for ManagedAsset
impl RefUnwindSafe for ManagedAsset
impl Send for ManagedAsset
impl Sync for ManagedAsset
impl Unpin for ManagedAsset
impl UnsafeUnpin for ManagedAsset
impl UnwindSafe for ManagedAsset
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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