pub struct Managed {
pub carrier: ManagedCarrierKindV1,
pub location: String,
pub config: Result<ManagedConfigV1, String>,
}Expand description
A managed configuration found on this machine.
Fields§
§carrier: ManagedCarrierKindV1§location: StringWhere the carrier lives (path or HKLM\…).
config: Result<ManagedConfigV1, String>The members, or why the carrier was refused.
Implementations§
Source§impl Managed
impl Managed
Sourcepub fn load(carrier: &Carrier, owner: Owner) -> Option<Managed>
pub fn load(carrier: &Carrier, owner: Owner) -> Option<Managed>
Read carrier; None when it is absent or sets no member.
Sourcepub fn apply_to_cloud(&self, cloud: &mut CloudConfig)
pub fn apply_to_cloud(&self, cloud: &mut CloudConfig)
Overlay [cloud]: the managed origin and root key win, a managed
false turns an upload off. A refused carrier changes nothing here;
the connector refuses on Managed::config instead.
Sourcepub fn keep_user_values(&self, cloud: &mut CloudConfig, user: &CloudConfig)
pub fn keep_user_values(&self, cloud: &mut CloudConfig, user: &CloudConfig)
Undo Managed::apply_to_cloud for a save: every member the managed
configuration sets takes the value user (the file on disk) holds.
Sourcepub fn refusal(&self, key: &str) -> Option<String>
pub fn refusal(&self, key: &str) -> Option<String>
Why config set <key> must not change key, if it must not.
Sourcepub fn org_refusal(&self, org_id: &str) -> Option<String>
pub fn org_refusal(&self, org_id: &str) -> Option<String>
Why org_id may not be connected to, if it may not.
Sourcepub fn wire(&self) -> CloudStatusManagedV1
pub fn wire(&self) -> CloudStatusManagedV1
managed of cloud status --json.
Trait Implementations§
impl Eq for Managed
impl StructuralPartialEq for Managed
Auto Trait Implementations§
impl Forget for Managed
impl Freeze for Managed
impl Move for Managed
impl RefUnwindSafe for Managed
impl Send for Managedwhere
RawVecInner: Send,
impl Sync for Managedwhere
RawVecInner: Sync,
impl Unpin for Managed
impl UnsafeUnpin for Managedwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Managedwhere
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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