pub struct ManagedNotification {
pub version: u32,
pub function: String,
pub prefix: String,
pub provider: String,
pub resources: Vec<ManagedResource>,
pub updated_at_unix: u64,
}Expand description
The notification pipeline boatramp provisioned for one (function, prefix), so
it can be retracted on trigger/site removal. Keyed under
blobnotify_key. Mirrors ManagedDns.
Fields§
§version: u32Schema version, pinned at crate::SCHEMA_VERSION.
function: StringThe function whose blob-change trigger this backs.
prefix: StringThe watched blobstore prefix.
provider: StringThe provider that owns the resources (s3 / gcs / azure), so a
retraction rebuilds the same one.
resources: Vec<ManagedResource>The resources to delete when the trigger is retracted.
updated_at_unix: u64Unix seconds the ledger entry was last written.
Implementations§
Source§impl ManagedNotification
impl ManagedNotification
Sourcepub fn new(
function: &str,
prefix: &str,
provider: &str,
resources: Vec<ManagedResource>,
now_unix: u64,
) -> ManagedNotification
pub fn new( function: &str, prefix: &str, provider: &str, resources: Vec<ManagedResource>, now_unix: u64, ) -> ManagedNotification
A ledger entry for (function, prefix) provisioned by provider.
Sourcepub fn from_json(bytes: &[u8]) -> Result<ManagedNotification, ConfigError>
pub fn from_json(bytes: &[u8]) -> Result<ManagedNotification, ConfigError>
Parse from stored JSON bytes.
Trait Implementations§
Source§impl Clone for ManagedNotification
impl Clone for ManagedNotification
Source§fn clone(&self) -> ManagedNotification
fn clone(&self) -> ManagedNotification
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 ManagedNotification
impl Debug for ManagedNotification
Source§impl Default for ManagedNotification
impl Default for ManagedNotification
Source§fn default() -> ManagedNotification
fn default() -> ManagedNotification
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ManagedNotificationwhere
ManagedNotification: Default,
impl<'de> Deserialize<'de> for ManagedNotificationwhere
ManagedNotification: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ManagedNotification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ManagedNotification, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ManagedNotification
Source§impl PartialEq for ManagedNotification
impl PartialEq for ManagedNotification
Source§impl Serialize for ManagedNotification
impl Serialize for ManagedNotification
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ManagedNotification
Auto Trait Implementations§
impl Freeze for ManagedNotification
impl RefUnwindSafe for ManagedNotification
impl Send for ManagedNotification
impl Sync for ManagedNotification
impl Unpin for ManagedNotification
impl UnsafeUnpin for ManagedNotification
impl UnwindSafe for ManagedNotification
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.