#[non_exhaustive]pub struct PublishedSource {
pub provider: String,
pub web: Option<String>,
pub project: Option<String>,
pub intake_labels: Vec<String>,
}Expand description
What a Station publishes at check-in of one Source instance, so a gateway that loads no Source provider can name its page and intake labels. It carries no credential: no variable name and no value.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.provider: StringThe Source provider’s ID: github, gitlab, jira.
web: Option<String>The https page of the repository or project, or a Jira site’s root.
project: Option<String>The project’s key at the tracker, when it has one.
intake_labels: Vec<String>The labels an item needs to be taken in.
Implementations§
Trait Implementations§
Source§impl Clone for PublishedSource
impl Clone for PublishedSource
Source§impl Debug for PublishedSource
impl Debug for PublishedSource
Source§impl Default for PublishedSource
impl Default for PublishedSource
Source§impl<'de> Deserialize<'de> for PublishedSource
impl<'de> Deserialize<'de> for PublishedSource
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 PublishedSource
Source§impl FromValue for PublishedSource
impl FromValue for PublishedSource
Source§const KINDS: Kinds = ::guatiao::Kinds::MAP
const KINDS: Kinds = ::guatiao::Kinds::MAP
The kinds
from_value may accept; any
other is refused. Every impl in this crate and every derived one
says; the default, [Kinds::ANY], claims every kind, which keeps
a type that does not say out of an enum told apart by kind.Source§fn from_value(__value: &Value) -> Result<Self, MapError>
fn from_value(__value: &Value) -> Result<Self, MapError>
Performs the conversion. Read more
Source§impl FromWalk for PublishedSource
impl FromWalk for PublishedSource
Source§impl MapRead for PublishedSource
impl MapRead for PublishedSource
Source§impl PartialEq for PublishedSource
impl PartialEq for PublishedSource
Source§impl Schema for PublishedSource
impl Schema for PublishedSource
Source§impl Serialize for PublishedSource
impl Serialize for PublishedSource
impl StructuralPartialEq for PublishedSource
Source§impl ToValue for PublishedSource
impl ToValue for PublishedSource
Auto Trait Implementations§
impl Freeze for PublishedSource
impl RefUnwindSafe for PublishedSource
impl Send for PublishedSource
impl Sync for PublishedSource
impl Unpin for PublishedSource
impl UnsafeUnpin for PublishedSource
impl UnwindSafe for PublishedSource
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.