pub struct InstallationView {Show 16 fields
pub installation: InstallationId,
pub application: ApplicationId,
pub owner: DidNostr,
pub state: InstallationState,
pub generation: u64,
pub schedule_secs: u64,
pub workspace: WorkspaceMode,
pub app_did: Option<DidNostr>,
pub created_at: UnixTime,
pub activated_at: Option<UnixTime>,
pub withdrawn_at: Option<UnixTime>,
pub key_reasons: Vec<KeyReason>,
pub grant: GrantState,
pub cleanup_pending: Vec<ContainerPath>,
pub enforcement: Option<EnforcementParts>,
pub jobs: JobCounts,
}Expand description
One installation as the member (GET /api/v1/installations,
…/{id}) and the administrator (GET /api/v1/installations) see it.
It never carries a result body.
Fields§
§installation: InstallationIdThe installation.
application: ApplicationIdIts application.
owner: DidNostrThe member who owns it.
state: InstallationStateIts state.
generation: u64The owner’s generation it was made in.
schedule_secs: u64Its schedule: 0, or 300 to 604 800.
workspace: WorkspaceModeThe workspace it asked for.
app_did: Option<DidNostr>Its application key, once the signer returned it.
created_at: UnixTimeWhen it was made.
activated_at: Option<UnixTime>When consent made it active.
withdrawn_at: Option<UnixTime>When it was withdrawn.
key_reasons: Vec<KeyReason>Its key’s disable reasons.
grant: GrantStateThe grant’s state: withdrawn while any container’s cleanup is
pending.
cleanup_pending: Vec<ContainerPath>The containers whose cleanup is pending.
enforcement: Option<EnforcementParts>The enforcement of its withdrawal, or of the application’s disable;
null when neither applies.
jobs: JobCountsIts jobs counted by state.
Trait Implementations§
Source§impl Clone for InstallationView
impl Clone for InstallationView
Source§impl Debug for InstallationView
impl Debug for InstallationView
Source§impl<'de> Deserialize<'de> for InstallationView
impl<'de> Deserialize<'de> for InstallationView
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 InstallationView
Source§impl Hash for InstallationView
impl Hash for InstallationView
Source§impl PartialEq for InstallationView
impl PartialEq for InstallationView
Source§impl Serialize for InstallationView
impl Serialize for InstallationView
impl StructuralPartialEq for InstallationView
Auto Trait Implementations§
impl Forget for InstallationView
impl Freeze for InstallationViewwhere
*const u8 is !null: Freeze,
PhantomData<KeyReason>: Freeze,
PhantomData<ContainerPath>: Freeze,
impl Move for InstallationView
impl RefUnwindSafe for InstallationView
impl Send for InstallationViewwhere
RawVecInner: Send,
impl Sync for InstallationViewwhere
RawVecInner: Sync,
impl Unpin for InstallationView
impl UnsafeUnpin for InstallationViewwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<KeyReason>: UnsafeUnpin,
PhantomData<ContainerPath>: UnsafeUnpin,
impl UnwindSafe for InstallationViewwhere
RawVecInner: UnwindSafe,
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