pub struct ForgejoInstance {
pub instance_url: String,
pub token_name: String,
pub token_secret: String,
pub organization: String,
pub feed_rooms: Vec<String>,
pub events: Vec<ActivityOpType>,
}Expand description
Configuration of a forgejo instance.
Fields§
§instance_url: StringBase instance URL.
token_name: StringConfigured token name.
token_secret: StringGenerated token secret.
organization: StringOrganization to observe changes in.
feed_rooms: Vec<String>Room to post updates to.
events: Vec<ActivityOpType>Event types to post about
Trait Implementations§
Source§impl Clone for ForgejoInstance
impl Clone for ForgejoInstance
Source§fn clone(&self) -> ForgejoInstance
fn clone(&self) -> ForgejoInstance
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 ForgejoInstance
impl Debug for ForgejoInstance
Source§impl Default for ForgejoInstance
impl Default for ForgejoInstance
Source§fn default() -> ForgejoInstance
fn default() -> ForgejoInstance
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ForgejoInstance
impl<'de> Deserialize<'de> for ForgejoInstance
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
Auto Trait Implementations§
impl Freeze for ForgejoInstance
impl RefUnwindSafe for ForgejoInstance
impl Send for ForgejoInstance
impl Sync for ForgejoInstance
impl Unpin for ForgejoInstance
impl UnsafeUnpin for ForgejoInstance
impl UnwindSafe for ForgejoInstance
Blanket Implementations§
impl<T> Any for Twhere
T: Any,
impl<T> AsyncTraitDeps for T
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<T> CloneAny for T
impl<T> CloneAnySend for T
impl<T> CloneAnySendSync for T
impl<T> CloneAnySync for T
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>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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