[−][src]Struct hedwig::GooglePublisher
A publisher that uses Google PubSub. To use this class, add feature google
.
Examples
let publisher = GooglePublisher::new(String::from("/home/.google-key.json"), "myproject".into())?;
Methods
impl GooglePublisher
[src]
pub fn new<P>(
google_application_credentials: P,
google_cloud_project: String
) -> Result<GooglePublisher, HedwigError> where
P: AsRef<Path>,
[src]
google_application_credentials: P,
google_cloud_project: String
) -> Result<GooglePublisher, HedwigError> where
P: AsRef<Path>,
Create a new instance of GooglePublisher For now, this requires explicitly passing in the path to your credentials file, as well as the name of the project where pubsub infra lives.
Arguments
- google_application_credentials - Path to the google credentials file.
- google_cloud_project - The Google Cloud project where your pubsub resources lie - this /may be/ different from the credentials.
Trait Implementations
impl Publisher for GooglePublisher
[src]
Auto Trait Implementations
impl Send for GooglePublisher
impl Unpin for GooglePublisher
impl !Sync for GooglePublisher
impl !UnwindSafe for GooglePublisher
impl !RefUnwindSafe for GooglePublisher
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> GetTypeId for T where
T: Any,
[src]
T: Any,