pub struct ObicoSection {
pub url: Option<String>,
pub access_token: Option<String>,
pub ml_api_url: Option<String>,
pub printer_id: Option<i64>,
}Expand description
Where Obico’s own API answers, as written down.
Its debug form never shows the token.
Fields§
§url: Option<String>The server’s own http or https address, such as
http://127.0.0.1:3334. Given with access_token or not at all.
access_token: Option<String>A bearer token for its API, issued by the instance’s own OAuth
administration. Left out with the address, a print the detector paused
and the supervisor resumed is not acknowledged to Obico.
ml_api_url: Option<String>The failure detector’s own service — Obico’s ml_api — as an http
or https address, whose unauthenticated /hc/ is asked during every
print whether detection is up. Left out, nothing checks it and its
health reads unchecked.
printer_id: Option<i64>Obico’s own identifier for the printer — the number in its printer
page’s address — whose record of the print is read once per
observation interval for the detector’s status. Left out, the printer
the last body Obico posted named is read, and nothing until it has
posted one.
Trait Implementations§
Source§impl Clone for ObicoSection
impl Clone for ObicoSection
Source§impl Debug for ObicoSection
impl Debug for ObicoSection
Source§impl Default for ObicoSection
impl Default for ObicoSection
Source§impl<'de> Deserialize<'de> for ObicoSection
impl<'de> Deserialize<'de> for ObicoSection
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>,
impl Eq for ObicoSection
Source§impl JsonSchema for ObicoSection
impl JsonSchema for ObicoSection
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for ObicoSection
impl PartialEq for ObicoSection
Source§impl Serialize for ObicoSection
impl Serialize for ObicoSection
impl StructuralPartialEq for ObicoSection
Auto Trait Implementations§
impl Forget for ObicoSection
impl Freeze for ObicoSection
impl Move for ObicoSection
impl RefUnwindSafe for ObicoSection
impl Send for ObicoSectionwhere
RawVecInner: Send,
impl Sync for ObicoSectionwhere
RawVecInner: Sync,
impl Unpin for ObicoSection
impl UnsafeUnpin for ObicoSection
impl UnwindSafe for ObicoSectionwhere
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
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,
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§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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
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> ⓘ
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.